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