Suppose I have a counter metric; let's name it `foo`. Suppose foo first shows up with a value of 0 in a scrape at time t0, shows up with a value of 10 in a scrape at time t0+10s, and has value 10 in all subsequent scrapes. What will the PromQL expression `rate(foo[60s])` get me? I suppose nothing until time t0+60s; some non-zero value from t0+60s to t0+70s; and zero from t0+70s onward. Is that right? If not, what will I get?
Now suppose instead that foo first shows up in a scrape at time t0 with a value of 10, and in every scrape after that the value of foo is also 10. What will `rate(foo[60s])` give me? If I understand correctly, it will give me nothing until time t0+60s, and from then on it will give me zero. Have I got this right? That is a rather disappointing answer. This counter really did start at zero, and got 10 increments before the first scrape. It would be gratifying to have a PromQL query that shows this blip of activity. Can I write a different PromQL query that will get this result? While retaining all the other smarts of `rate`? Thanks, Mike -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/954b128d-fdf9-4829-86c7-8645fde91cb3o%40googlegroups.com.