简体   繁体   English

如何使用 Grafana 警报显示 Prometheus 标签

[英]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.

相关问题 如何在使用 grafana 和 prometheus-operator 时配置电子邮件警报 - How to config email alert in using grafana and prometheus-operator 如何将元素(标签)添加到 Prometheus 查询以在 Grafana 中使用 - How do I add elements (labels) to a Prometheus query for use in Grafana 如何为普罗米修斯指标创建 Grafana Email 警报通知? - How to create a Grafana Email Alert notification for a prometheus metric? Grafana + Prometheus:显示事件发生频率的单个统计信息 - Grafana + Prometheus: Display single stat of how often an event occurred 如何在 Prometheus/Grafana 中显示成功和失败的 HTTP 调用`/status`? - How to display successful and failed HTTP calls to `/status` in Prometheus/Grafana? 如何在prometheus + grafana中显示零而不是最后一个值 - How to display zero instead of last value in prometheus + grafana 如果 Prometheus/Pushgateway 有旧数据,Grafana 会发出警报 - Grafana to alert if Prometheus/Pushgateway have old data 如何在 Prometheus/Grafana 中不指定 label 的情况下通过唯一标签计算指标数量? - How can I calculate the number of metrics by unique labels without specifying a label in Prometheus/Grafana? 计算多个 prometheus 指标的百分比并在 Grafana 中显示 - Calculate percentage of multiple prometheus metrics and display in Grafana 使用prometheus-alertmanager通过Grafana UI发送警报电子邮件 - Sending Alert emails through Grafana UI using prometheus-alertmanager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM