Yes, you can reset as long as it's longer than the interval. But, why? There's no specific need in Prometheus to do this.
On Thu, Sep 8, 2022 at 7:01 AM Vasiliy B <[email protected]> wrote: > Folks, > Am researching a use case where we collect /metrics data with Prometheus > only when needed to do some investigation. During normal operating hours, > we would flush the /metrics endpoint on a time schedule which is greater > than the scrape_interval ? > > From the documentation, it is clear that Prometheus server will honor > the scrape_interval config setting. But what about on the service side? Do > the metrics have the ability to reset to zero after a predefined time, i.e. > 1 minute? > > Looking for feedback if this is a feasible, any gotchas, or clarification > on how metrics are stored on the client side. > > Thanks! > > -- > 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/663233c1-7bdf-4903-9aa2-d7dce327a27bn%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/663233c1-7bdf-4903-9aa2-d7dce327a27bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CABbyFmr%2Bzx1AL9zKvnyDQn_j3erx%2B2M%3DnQuCMReL2At91RocCw%40mail.gmail.com.

