promql如何显示在告警规则名称中 #1765
foursunZero
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
告警规则名称中,可以使用
{{$labels.标签值}}
调用promql中标签值。但是我想在告警规则名称中调用promql本身,或者指标名称,该如何调用呢。例如以下语句,我想规则名称拿到指标
error
这个名称,,该如何使用呢。increase(sum(error)by(job)[1m]) >0
使用场景:多个告警条件中,我希望知道是那个promql触发告警
Beta Was this translation helpful? Give feedback.
All reactions