开发者

prometheus getting query result inside alert annotation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜