Hello This is a use case for a last_over_time function which does not exist and has been rejected in the past.
Here is how I solved it: https://roidelapluie.be/blog/2019/02/21/prometheus-last/ Regards Le lun. 8 juin 2020 à 07:30, Rajesh Reddy Nachireddi < [email protected]> a écrit : > But again, it always makes queries complex and doesn't give reliable > results. > > If we use absent- queries are complex and not much useful when we are not > expecting a boolean .. > > avg_over_time or max_over_time - it smoothens the data but its not > reliable.. > > > Do we have a way to distinguish data not present vs data not matched while > resolving and also it would be helpful to have timer based resolved similar > to firing. > > Want to hear from the community and maintainers. > > > > On Wed, Jun 3, 2020 at 5:52 PM Brian Candler <[email protected]> wrote: > >> OK - then as Ben says, use avg_over_time or max_over_time. >> >> -- >> 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/bf0545a1-e7a7-44b6-80a5-6000c6d521dc%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/bf0545a1-e7a7-44b6-80a5-6000c6d521dc%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/CAEyhnpJNRbApW%3DFytNcGq88NnexWnznk6zLVr-gP7GbABjS3ow%40mail.gmail.com > <https://groups.google.com/d/msgid/prometheus-users/CAEyhnpJNRbApW%3DFytNcGq88NnexWnznk6zLVr-gP7GbABjS3ow%40mail.gmail.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/CAFJ6V0pk0Mhj5fPB4W6y%2BV4%2BOr9XeXD0P3PBeZ94b1giPm-aKw%40mail.gmail.com.

