Hi community,
I’m working on a dashboard using Grafana with Elasticsearch as the data source. I need to calculate the difference between two timestamp fields (timestamp1
and current time
) and display this difference on the dashboard.
My Questions:
-
What’s the best way to calculate the time difference between two timestamps in Grafana using Elasticsearch as the data source?
-
Can someone provide a step-by-step guide on how to implement this in Grafana?
-
Are there any other approaches for this type of calculation, if the scripted fields in Elasticsearch aren’t storing correctly?