Hi All,
I am using Influx DB & Grafana and we pass some custom data into influx DB which are monitored in Grafana. Can you please help me with this scenario -
I have a custom variable $var with values ABC, XYZ, KLM (Selected → ALL option)
I have created a Table panel in Grafana that queries influxdb using query and displays as a table -
SELECT sum(“value”) FROM “one_month”.“table_name” WHERE (“status” = ‘stopped’ AND “server” = $var) AND $timeFilter GROUP BY “server”
which returns -
ABC | 67
XYZ | 81
The entry for server = KLM is not there in “one_month”.“table_name” so it does not show in this result.
Is it possible to somehow return data (value | 0 ) for all my custom variables even if that is not present in Influx DB.
For above query I would expect the result as -
ABC | 67
XYZ | 81
KLM | 0
Original requirement was like -
For each value in variable : -
Display the value of the variable & some number queried from influxdb