- What Grafana version and what operating system are you using?
8.3 on Linux
- What are you trying to achieve?
I’m trying to retrieve multiple configuration values from a Redis data source to be used in my gauges.
I’ve created a number of Gauge and Bar Gauge panels. Each panel should have multiple thresholds.
i.e. A “cell voltage” panel shows the real-time voltage for several cells, and the gauge should have 5 levels: Danger-Low, Warning-Low, Safe, Warning-High, Danger-High.
The cell voltages and threshold values are all stored in a Redis database. I want to be able to query the 4 threshold values from the database and use them to dynamically set the thresholds in the gauges.
The thresholds need to be dynamically loaded because this needs to work for various cell chemistries, which all have different operating voltages, currents, safe temperatures, etc.
- How are you trying to achieve it?
The Redis Data Source plugin does not support MGET queries, so I can only GET the value from one key in each query. So I have to retrieve the 4 threshold values using 4 separate queries.
I tried creating multiple “Config from query results” transforms.
I also tried storing the threshold values in dashboard variables and using the dashboard variables as the threshold values.
Finally, I tried using multiple “Rows to fields” transforms.
- What happened?
I can only create a single “Config from query results” transforms. Trying to add a second one just shows “No options available” in the dropdown.
I also tried using dashboard variables, but the threshold values don’t seem to allow variables.
Finally, the “Rows to fields” transforms aren’t working because it only uses the first query as the “field”. If I add multiple of these transforms, it always uses the same query as the “field” parameter.