Graph of timedeltas?

Grafana 7.3.7 + InfluxDB here. I have entries added to my InfluxDB at rather irregular intervals. I need a graph of the time between consecutive entries, in pseudocode:

SELECT time,(this.timestamp - previous.timestamp) AS difference FROM ...

Is this possible? If it’s not possible with Grafana, could I do it directly in InfluxDB?

https://docs.influxdata.com/influxdb/v1.8/query_language/functions/#elapsed

1 Like

Amazing, I didn’t know this function existed - thank you very much! :grinning: