I am using the windows node exporter, and it contains a label value of ‘version’ with the windows_os_info query. I am running grafana 7.2.1, and have tried various configurations I cannot get it to just show the ‘version’ . Any ideas?
Asked
Active
Viewed 3,585 times
2 Answers
2
Try sum by (version) (your_original_query_here)
.

sskrlj
- 199
- 4
-
Just gave that a try , no luck unfortunately. (updated screenshot in main question) – james Oct 19 '20 at 20:26
-
In retrospect, yes, `sum by (label)`shouldn't have changed a thing. But what do you expect for Grafana to display. Literally. Can you show what Prometheus Console returns? – sskrlj Oct 20 '20 at 06:16
0
It sounds like you may be best using a table for this. I have tested this with a similar query of:
sum by (instance,version) (windows_os_info)
Then creating a table with the following options:
Then under the transform section select "Organize fields" and have it display only the instance and version.
You can of course play around with this so it displays as per your needs.
The end result looks something like:

Saf
- 92
- 2
- 9