What kind of alerting rule did you create: a classic condition or a multidimensional rule? I believe message template only works with multi-dimensional rules. Check out this link for an explanation of the two and a brief intro to alert templating:
I tried today with the math expression an not the classic.
But there i got the follwing error:
invalid format of evaluation results for the alert definition : frame cannot uniquely be identified by its labels: has duplicate results with labels {}
Right now have other issue
How to disable pending state or how to work around it to be able not to wait for another 12h to execute check for pending condition
use “SUM” it will do the same as “Last” if you set a proper time rande for your query.
depend on your Garafan version set “evaluate every” on the 30s if don’t you will not receive a notification when the alert starts to firing. (its a bug that will be fixed in 8.1.7)
you will not able to set pending on zero. there should be such an option …
it doesnt matter how many tag’s you will have at the end. One or more …
Hi guys,
Using Grafana 8.3.0 with Prometheus datasource.
I’m testing local disk usage alert having it configured as shown below (using query, math expression and reduce expression):
And here is the question:
In Value section I can see value=1 which I believe is result of expression $Local_disk_usage > 80 however exact value of disk usage in this case is 84.
Is it possible to extract this 84 and show in message body with message template ?