Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display Prometheus labels with Grafana alert

I am using Grafana alerts with a Prometheus data source.

Everything works fine but I receive notifications like this:

[Alerting] Disk Usage % $instance
Message: Disk usage warning $instance

(Note my failed attempt to resolve a Prometheus label value in the alert name and message.)

To find out which instance has the memory problem I have to go into Grafana. I'm hoping there is a way to resolve Prometheus labels in Grafana alert notification names/messages. I'm aware I can perform alerting in Prometheus with bells and whistles, but I'd rather configure my alerts using the Grafana's dashboard, which seems adequate apart for this one desirable feature.

like image 527
sphere Avatar asked Feb 20 '19 15:02

sphere


Video Answer


1 Answers

Looks like current Grafana version v7.1.5 doesn't support it: https://github.com/grafana/grafana/issues/5848

like image 139
Vitalii Diravka Avatar answered Oct 17 '22 14:10

Vitalii Diravka