-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow alert evaluation to only occur during certain times/days #141
Comments
My first thought on how to approach this would be to create a time of day functions for use in filters. Something like:
Thoughts? |
Yeah, that would certainly be general enough for our use case (though perhaps weekDay() would be clearer than day()?). A cron-like syntax (e.g. * 8-17 * * 1-5) would also be fine. One thing to keep in mind is that eventually we'd like to alert for missing data during those periods, so we'd need to be careful that this would play nice with whatever implementation is used for #137 |
+1 for a dedicated function to filter alerts to specific days/times. Something cron-like as per @lpalm 's suggestion would be awesome. |
A filter would need to be configured specifically for each alert. For example, some of my alerts are no good on weekends. Some alerts are only during business hours. Some alerts shouldn't fire on holidays. Some alerts might be combinations of all of those. |
Per alert would be better for us as well as maintenance windows vary depending on the task being monitored and their geographical location. |
It would be really useful to have a way to prevent alerts/expressions from being evaluated during weekends or scheduled maintenance windows. Non-24/7 services typically will go down when not being used so we'd like to not have to receive emails about it.
The text was updated successfully, but these errors were encountered: