Hi,
i have some trouble generating a Grafana dashboard out of a utility meter sensor, exported by the prometheus integration and scraped. The utility meter sensor for getting the daily energy consumption is generating a sawtooth chart in Grafana, one sawtooth per day.
What i want to achieve is a pillar diagram, showing the max sawtooth value per day. What i cannot get on my own is what i need to configure in Grafana for that. All texts about similar topics reside on having the values categorized (by day) inside the data source. They are not in this case. I am also unsure what diagram type i need to chose. Bar chart? Bar gauge?
Thanks, this was helpful. There are two problems remaining: I am not using InfluxDB as a storage backend but Victoriametrics, so i need to write the Query in PromQL and not in Influx’s SQL dialect. So far i have max_over_time(hass_energy_wh{entity="sensor.energy"}[1d])
which produces the following output with a bar-styled time series chart:
The ultimate goal i want to achieve should look more like that: Daily power consumption from watts - #5 by lipovmar - InfluxDB - Grafana Labs Community Forums
I am still stuck somehow.
This was really helpful. I knew that I need MAX value of the day but was looking in the previous period - to have the max. With max you can keep looking to “value” field.
However, what I still find tricky is how to change the labels to “washing machine” “desk” “fridge” to have a comparison table similar to this one:
Change the ALIAS.