Hi,

we have defined alert definition with multiple thresholds but we want to
single message based on severity

Below are the mapping we have based on the value to represent them in a
message while formatting

1 == UNREACHABLE
2 == AUTHFAILED
3 == TIMEOUT
4 == TRANSITERROR


so, we want to change the description in rule annotations based on the
value to corresponding status.. How to write the if, else conditions.

annotations:
    description:  Device Diagnostics failed with {{if 1 then UNREACHABLE
elif 2 then AUTHFAILED }}

Regards,

Rajesh

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAEyhnpJf3oywqBqjpi7va9EeRJwBcOZ9x_JU99oeK9sFELe8PQ%40mail.gmail.com.

Reply via email to