On Grafana 13.0.2, I have two queries that are returning:
unitModelName{model_name=“A Big Server”} = 1
unitFirmware{firmware_version=“1.2.3.4”} = 1
I’d like to render this into a table:
| Key | Value |
| Model Name | A Big Server |
| Firmware | 1.2.3.4 |
I’ve seen a few iterations of this, but it’s always capturing the value of a particular metric. I’ve tried various combinations of Label to Field + Merge Series, but can’t bend Grafana to my will.
You could leverage javascript. Another way would have been to use SQL Expression but for now it is limited with the functions you can use such as parsing strings and extracting key value pairs
you will have to play with the array coming from your 2 datasources or combine them into one using sql union select metric from a union select metric from b
Since both have shared data points and will be two distinct rows, in your js you will have to dedup somehow.