Using Grafana Cloud with InfluxDB, I want a bar gauge showing a count of how many devices are running each firmware version. The data comes from Telegraf. Here’s a simplified example in line format for one device:
Can you share some sample data as you have it currently stored in InfluxDB, and state which items are fields and which are tags? I believe you must have version defined as a tag, and then your query would include GROUP BY version (which is only possible is version is a tag).
Given what I wrote earlier, can you change it so Version is a tag? How many unique versions could their theoretically be? (just trying to understand if cardinality is a potential issue)
Yes, that would be possible to change in Telegraf, if that’s the only option. That’s how I got it working in Prometheus (as a label).
But since Influx supports string type fields, I wanted to try it out and see if it makes more sense here. The number of versions is about 10, but I think the cardinality would be significant as it multiplies by many other tags. (I redacted some of the other tags here for brevity.)