scrape_interval is 5m I changed the scrape_interval today forgot to change it in grafana variable. Thank you.
On Wednesday, April 29, 2020 at 12:54:15 AM UTC+5:30, Brian Candler wrote: > > You haven't given enough details about what your metrics look like or how > often you are scraping. > > However, I can tell you that rate(foo[1m]) only looks at a 1 minute window > of the input. If you are only scraping at 1 minute intervals, that means > there will only be one data point in that window, and it cannot calculate a > rate from that - so you will get no answer. > > If you are scraping at 1 minute intervals then the minimum you need is > rate(foo[2m]) > > If you do rate(foo[5m]) this will give you an average across the first and > last data points in the range, i.e. an average over a 4 minute period if > you are scraping at 1 minute intervals. > > If you do irate(foo[5m]) this will give you the rate between the last two > data points in the range. > > -- 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/70591f3c-b360-485c-940e-843a1938cfde%40googlegroups.com.

