Re: [prometheus-developers] How. to deal with outdated series in alerts.

2020-11-16 Thread Mounya A
Thank you so much. It helped me. On Monday, November 16, 2020 at 1:23:08 PM UTC+5:30 matt...@prometheus.io wrote: > Restart the application that produces metrics. > > Generally, the client libraries will remember metrics even if they are not > being incremented anymore (it cannot know that

Re: [prometheus-developers] How. to deal with outdated series in alerts.

2020-11-15 Thread Matthias Rampke
Restart the application that produces metrics. Generally, the client libraries will remember metrics even if they are not being incremented anymore (it cannot know that they won't be again). Restarting clears the "seen" label set in each process. Side note: this can also bite you the other way –

[prometheus-developers] How. to deal with outdated series in alerts.

2020-11-15 Thread Mounya A
Hello all, I have a question - how do we deal with labels that are no longer there (intentionally stopped) in alerts. Will there be any threshold time to consider it as stale or unwanted. I have configured an alert when rate(requests[1m]) == 0. It is firing alerts for labels,