I have a Prom CPU alert rule defined like below :
- alert: HostHighCpuLoad expr: (sum by (instance) (avg by (mode, instance)
(rate(node_cpu_seconds_total{mode!="idle"}[2m]))) > 0.8) * on(instance)
group_left (nodename) node_uname_info{nodename=~".+"} for: 0m labels:
severity: warning product : backend-app annotations: summary: Host high CPU
load (instance {{ $labels.instance }}) description: "CPU load of {{
$labels.product }} is greater than > 80%"
its triggering the alert, but the value of custom label product :
backend-app is not interpolating in the alert description part, its coming
like below
"CPU load of is greater than > 80%"
expected is
"CPU load of backend-app is greater than > 80%"
any idea why the custom label is not picking up, although the alert is
getting triggered
or how can we add custom alert labels that are accessible in annotation.
thanks
--
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/abd23206-51ac-4a92-9bd2-d8905ac09caen%40googlegroups.com.