I am experiencing a delay in the query results in Grafana. The values shown in Grafana are about 90 seconds delayed compared to the values in InfluxDB.
I used the same query in both applications. The duration and refresh times are exactly the same. I didn’t apply any transformations, the query is fairly simple, and I didn’t apply any aggregation.
Can someone explain why this is happening? How can I shorten the delay?
I know this is not your question, but can you explain why the values (not the timestamps) in Grafana are so different vs. the values in InfluxDB? It would indicate that some mathematical operation was used?
I’m performing some calculations in Grafana on other dashboards. I don’t believe these are causing the system to slow down, but I’m eager to test it. Is there a way to stop all other queries in Grafana?
Grafana and InfluxDB both run on the same Raspberry Pi. I assume that both applications (InfluxDB and Grafana) automatically have the same OS time. Or am I wrong?
source: where the metric is generated - maybe metric timestamp is already ingested with some time drift
server: that’s your RPI
browser: that OS, where browser is running has also own time, which can be used as “NOW” in Grafana query
Make sure all these “everywhere” have synced times (so they show the same UTC time at the same time). It looks like there can be some time drift somwhere, which can be causing a problem. Of course I don’t have access to your systems, so only you can verify that and prove me that I’m correct/wrong. Pls do that.
Thank you for the hint. I found a mismatch in the time settings between the Raspberry Pi and the Windows system with the browser. I corrected it, and now it works. Thank you!
However, I still find it strange that Grafana takes the time from the browser and not from the system where it is running…