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?