Thanks Rajesh, I am aware of the inhibition rules approach and the success that users have had with it. I encourage you to read the GitHub thread for more discussion on this, but the current line of thinking is that this approach is quite complex, especially for new users, and also requires users to define recording rules in Prometheus for something that should be theoretically outside of Prometheus' 'awareness' if you will, as it's purely an alerting decision.
Cheers, Ben On Mon, Jun 8, 2020 at 2:37 PM Rajesh Reddy Nachireddi < [email protected]> wrote: > Hi, > > It is possible with current infra as well. Please refer to the > https://medium.com/@tom.fawcett/time-of-day-based-notifications-with-prometheus-and-alertmanager-1bf7a23b7695 > > However, your proposal makes it generic for time of the day messages > however there might few other issues as we go , better approach is > following inhibit rules. > > Regards, > Rajesh > > On Mon, Jun 8, 2020 at 9:02 AM Benjamin Ridley <[email protected]> > wrote: > >> Hi everyone, >> >> I'm sure many of you have come across the problem of controlling alerts >> based on the time of day or outside business hours etc inside Alertmanager. >> There is also a longstanding issue >> <https://github.com/prometheus/alertmanager/issues/876> on the >> Alertmanager GitHub about this which I encourage you to read if you want >> some more context. >> >> This is a proposed design for defining time intervals in the Alertmanager >> configuration file and how they would be used in the routing tree to >> silence particular routes inside or outside the specified intervals, >> allowing users to model time-based requirements to their liking. >> >> The document is open for suggestions and comments and any feedback is >> welcomed, so please take a look and let us know what you think. You can >> access the document here >> <https://docs.google.com/document/d/1pf-rPDQUGJUHazyr5vanTO6ft3loNZO9UoVpvhShFtA/edit?usp=sharing> >> . >> >> Cheers, >> Ben >> >> -- >> 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/5145dc1a-282f-446a-b5fc-4f4d5d95504eo%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/5145dc1a-282f-446a-b5fc-4f4d5d95504eo%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/CABaapw%2BMG4n0OGC-QhkjsMRFoZ-VH%3DW%2BVYnP0d-WK8Cx%3Dd%2BhTg%40mail.gmail.com.

