I am trying to display temperature data converted from fahrenheit to celsius on dashboard grafana which is on production server, when I add math() function to query, graph does not display anything but when I try to display it in grafana which is on local server (laptop) graph displays the temperature data.
What is wrong and how to fix it?
I’m using different influxdb version, but same schemas/data in test and production.
I do math() function in different query to calculate influxdb shard and it works.
query that’s working at production to display database size :
SELECT sum(“diskBytes”) / 1024 / 1024 FROM “influxdb_shard” WHERE (“database” = ‘_internal’) AND $timeFilter GROUP BY time($__interval), “database”
query that’s not working at production to display temperature :
SELECT (“tempf” - 32 ) / 1.8 FROM “rawdata” WHERE (“ID” = ‘IBANDUNG4’) AND $timeFilter
I was meaning that you’re operating on two completely different metrics. The first one which working are using a sum and group by but the other doesn’t - maybe the reason?
The reason for the data I want to show is different. The first metric to display database size while the second metric to display the results of data conversion from fahrenheit to celcius.
Is there any other solution so I can display the converted data from fahrenheit to celcius?