开发者

prometheus getting query result inside alert annotation

开发者 https://www.devze.com 2022-12-07 17:27 出处:网络
I need your help in setting prometheus alert with ability to insert list of specific labels inside annotation neither summary or description , below chunck of my alert config :

I need your help in setting prometheus alert with ability to insert list of specific labels inside annotation neither summary or description , below chunck of my alert config : groups:

metric1 is metric with multiple vectors and multiple values of labels , value of metric1 can be 0 or 1 , this alert is fired if one or more of metric1 vector equal to zero , my need is to get list of labels of metric "metric1" which value equal to zero inside alert annotation

-name: NodeMiss开发者_如何学Pythoniong rules: - alert: Node1 expr : (sum(metric1{})-count(metric1{}))!=0 annotations: description : "

0

精彩评论

暂无评论...
验证码 换一张
取 消