Help with calculating difference between current time and timestamp of the last non-zero row

Hi,

I want to calculate the difference between the current time and the time of the last non-zero value from a Prometheus counter metric. But I’m not sure how to do this as I am new to Grafana. Can you please help me with this?

1 Like