![](/img/trans.png)
[英]How to count fired alerts in Prometheus alerts and append it to alerting labels?
[英]how to get alerts count ,how many times the alerts fired for last one week in prometheus
sum by(alertname) (changes(ALERTS_FOR_STATE[24h])) 這給了我所有的狀態。 我只需要上周有多少警報進入關鍵狀態(已經被解雇)。 需要幫助。
提前致謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.