Thanks Julien. I used the similar approach for testing but it is really difficult to write 3 to 4 rules to raise/clear an alert
And another proposal was to check the number of times the condition matches FOR duration. This worlds for discrete data as well instead of streaming only. On Mon, Jun 8, 2020 at 11:28 AM Julien Pivotto <[email protected]> wrote: > 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/CAEyhnpLwzng_bSk_832dTdMwvWt_CGkErYXZoTKm2UWy802SMA%40mail.gmail.com.

