-
What Grafana version and what operating system are you using?
- Version 10.3.1
- Red Hat Enterprise Linux release 8.10 (Ootpa)
-
What are you trying to achieve?
- I would like alert notifications to include the actual service name that is critical
-
How are you trying to achieve it?
- I’ve edited the alert rule so that “labels and notifications” use the following
- service_name = {{ $labels.service_name }}
-
What happened?
- The email notification looks like this
-
What did you expect to happen?
- I would like the alert to print the actual service name instead of [no value]
-
Can you copy/paste the configuration(s) that you are having problems with?
- Metrics Browser >
- sum(consul_health_service_status{status=“critical”}) by (service_name) / count(consul_health_service_status{status=“critical”}) by (service_name)
- Metrics Browser >
Builder
Code
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
- no
-
Did you follow any online instructions? If so, what is the URL?
- no




