https://grafana.com/docs/grafana/latest/alerting/create-alerts/
I’m confused. The above talks about clicking on the title of a dashboard, then edit. I’m logged in as admin and there’s no such thing as an alert tab that seems to appear.
What might I be doing wrong?
Perhaps you can’t edit/add alerts to the default dashboards? You must create your own new dashboard, then you can add threshold alerts to that?
1 Like
Hi @marcoshaw
It’s possible to add an alert to existed elements. But Grafana has a limitation regarding template variables.
The query used in an alert rule cannot contain any template variables.
Variables are used in all formulas. So you should rewrite formulas in order to remove variables.
After such changes you would be able to create an alert rule.
e.g.
Original formula is Query A and modified one is Query D
1 Like
One of these days I’m going to beat @Vadim_Yalovets to an answer…but he’s once again nailed it! The other issue with the native alerting is that it’s coupled to that graph/chart which is rarely what people are after…more often than not, you want to know when “any production mysql queries per second crosses X” which is why we added integrated alerting as of 2.13.0 which is in tech preview. It’s Alertmanager based but allows for more “recipe” driven alerting and so far integrates nicely with email/slack/pagerDuty with more options on the horizon. Just another option as I find the duplicating of templated dashboards and limited scope of the alert to be cumbersome.
2 Likes