Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grafana alert label value passing to rendered dashboard/panel image. #87410

Open
itjobs-levi opened this issue May 7, 2024 · 1 comment
Open

Comments

@itjobs-levi
Copy link

itjobs-levi commented May 7, 2024

Why is this needed:
When rendering a panel image in Grafana alert, I want to specify the series of the panel.
Most users will probably not build dashboards for each server.
Also, cpu, memory, disk, and status alerts will not be created for each server. (annoying task)
That is also the reason why I stopped using cloudwatch alarm and moved to grafana.

Through a common dashboard and common alerts, we were able to reduce repetitive and cumbersome tasks. (As long as the image render goes well...)

What would you like to be added:
https://example.grafana.com/render/xxxx/xxxxxx/infra-monitoring?orgId=1&panelId=1&width=1000&height=500&scale=1&var-server-id=$label.instance-id

In Grafana Alert rule
You can specify Dashboard/Panel.
Additionally, I would like to send the label value to the template variable used in panel.
var-server-id=$label.instance-id

Who is this feature for?
I think many DevOps Engineers and Grafana administrators will need this.

Reference Link
#56004
https://community.grafana.com/t/does-the-grafana-9-alert-have-an-annotation-for-template-variables-image-rendering/68179/3

It seems like there have been requests for this feature before.
It's closed for discussion, but it doesn't seem to have a feature, so I'm posting it as a feature request.

@PW999
Copy link

PW999 commented May 23, 2024

This would be a life saver for us. We avoid using repetitions in dashboards mainly because of this. As a result, we have to copy-paste our dashboards for each environment, copy-paste alerts for each environment and manually change the ids of the dashboards and panels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants