-
What Grafana version and what operating system are you using?
- Grafana 12.3.0 on a docker container running inside Ubuntu 24.04 LTS
-
What are you trying to achieve?
- I am querying information from a Hypervisor, trying to alert when the storage usage gets too high, and inform the user how high is the usage, and the name of the storage.
-
How are you trying to achieve it?
- I have created a PromQL query that measures the storage usage:
- As you can see in the picture, the reference for the Storage is only shown as a UUID. I have a different query, that gets the Storage information (from the label name_label), and in a normal dashboard, I use the join transformation (using the uuid label) to get the information together. Unfortunately, I cannot do that in alerting. This is a sample of the query I use to get the names:
-
What happened?
- I am not able to create one alert that specifies the USAGE of the storage and the NAME of the storage. That will make the alerts pretty hard for human usage.
You don’t need 2 queries. PromQL supports join and it is used with info metric usually.
Thank you so much, @jangaraj I used your recommendation to build the following query with a PromQL join:
((xen_sr_physical_utilisation / xen_sr_physical_size) * 100) * on(uuid) group_left(name_label) xen_sr_info{name_label!~“DVD drives|Removable storage”}
As you can see, now I get the proper labels with the result query, solving my issue:
1 Like


