Hey there,
I am a beginner in data visualisation with grafana. I read some tutorials and wanted to create a bar gauge based on tag data in influx (state=[green | yellow | red]).
I execute the following query:
from(bucket: "myBucket")
|> range(start: v.timeRangeStart, stop:v.timeRangeStop)
|> filter(fn: (r) => r._measurement == "myMeasurement")
|> group(columns: ["state", "_measurement"], mode:"by")
|> count(column: "_value")
And I get the correct data in the tableview:
_start green
xxx 15
_start yellow
xxx 10
_start red
xxx 5
But when I switch to bar gauge representation, the height of the bars is not correct (e.g. “red” is too low for value 5)
Do you have any idea?
Best
Stefan