My exporter scrapes metrics every 5 seconds. I set the range-vector of the 
query to 10 seconds, which is 2x of scrape interval, in order to catch 
'spikes and dips',

The problem is Grafana automatically controls the resolution(step) of the 
graph, and I'm losing some data points when I set a long time range.

Trivial solution is using '$__interval' or '$__rate_interval' variable 
instead of constant range vector.

But if I use variable for range-vector, I will lose many data points when I 
monitor a long time range graph. Because irate() considers only the last 
two samples.

Is it okay to use irate() in Grafana? Or is there any better solution?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/dd41dc3f-52ad-49b2-b98d-53e2a09edbebn%40googlegroups.com.

Reply via email to