You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
is it possible to use variables in alert rule names?
I want to achieve something like the following in which the metric service_warnings has the label type
- alert: "Warning for {{ $labels.type }}"
expr: sum(increase(service_warnings[2m])) by (type) > 0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
is it possible to use variables in alert rule names?
I want to achieve something like the following in which the metric
service_warnings
has the labeltype
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions