[英]How to display Prometheus labels with Grafana alert
I am using Grafana alerts with a Prometheus data source.我正在使用带有 Prometheus 数据源的 Grafana 警报。
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.) (请注意,我尝试解析警报名称和消息中的 Prometheus 标签值失败。)
To find out which instance has the memory problem I have to go into Grafana.要找出哪个实例有内存问题,我必须进入 Grafana。 I'm hoping there is a way to resolve Prometheus labels in Grafana alert notification names/messages.我希望有一种方法可以解决 Grafana 警报通知名称/消息中的 Prometheus 标签。 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.我知道我可以在 Prometheus 中用花里胡哨的方式执行警报,但我更愿意使用 Grafana 的仪表板配置我的警报,这似乎足以满足这一理想功能。
看起来当前的 Grafana 版本 v7.1.5 不支持它: https : //github.com/grafana/grafana/issues/5848
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.