I think i got this one figured out.
Bargauge panel expects the data for different bars as grouped values.
Like when you have a query with multiple fields, the data is grouped by field and there is one bar with the latest value for each field.
So this means the data just needs some formatting.
I use fluxquery to collect my data, it automatically returns multiple tables for grouped columns.
(By the way, using influxdb’s explorer you can see how columns are grouped)
When using a DB like Microsoft SQL, I think it is only possible to create a query per bar you need with a different alias for the barname.
The columns needed for Bargauge to work are
-A timestamp for the last value (don’t as me why, barnames get weird labels otherwise)
-A value -A column for the different bars that the data is grouped by.
My example query for daily total of an always increasing value (with rollover → increase function) the reformatting of the date column is optional, this can just be the date including time 00:00:00.
I think i got this one figured out.
Bargauge panel expects the data for different bars as grouped values.
Like when you have a query with multiple fields, the data is grouped by field and there is one bar with the latest value for each field.
So this means the data just needs some formatting.
I use fluxquery to collect my data, it automatically returns multiple tables for grouped columns.
(By the way, using influxdb’s explorer you can see how columns are grouped)
When using a DB like Microsoft SQL, I think it is only possible to create a query per bar you need with a different alias for the barname.
The columns needed for Bargauge to work are
-A timestamp for the last value (don’t as me why, barnames get weird labels otherwise)
-A value -A column for the different bars that the data is grouped by.
My example query for daily total of an always increasing value (with rollover → increase function) the reformatting of the date column is optional, this can just be the date including time 00:00:00.