-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(Azure): suppress downtime alerts when data is being loaded #241
Conversation
@@ -8,3 +8,27 @@ module "healthcheck" { | |||
name = "mst-courtesy-cards-eligibility-server-${local.env_name}-healthcheck" | |||
url = "https://${azurerm_linux_web_app.main.default_hostname}/healthcheck" | |||
} | |||
|
|||
# ignore when app restarts as data is being reloaded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this only configured on the Velocity side, or somewhere on the Eligibility Server side as well?
Unfortunately we won't really know if this works until we merge it and see if an alert comes through overnight 🤷 |
# ignore when app restarts as data is being reloaded | ||
# https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-processing-rules | ||
# the Terraform resource doesn't support time windows, so need to drop down to an ARM template instead | ||
# https://github.com/hashicorp/terraform-provider-azurerm/issues/16726 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See this note re: the JSON above.
e582236
to
0c8000d
Compare
} | ||
], | ||
"schedule": { | ||
"timeZone": "Eastern Standard Time", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created based on grabbing JSON from the Portal, hence it being in my time zone. Didn't bother to change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the walkthrough @afeld
Fixes #220.
Uses an alert processing rule to disable notifications during that specific window of time every night.