Set severity of alerts
Description
Set the severity value for the alerts generated by this module.
Further details
The value is optional, and if not set results in alert emails including No severity
in the subject line. This takes up more space than the real values would, and requires more cognitive load to understand.
Possible values are: CRITICAL
, ERROR
, WARNING
. If the uptime check has failed, the alert should be CRITICAL
, as this is a strong signal that the app is broken. The alert for the check not running should be ERROR
, as the app might still be working but urgent action is needed to verify that and fix the checks. The alert for SSL expiry should be WARNING
, as we have time to get the cert renewed.
The severity option isn't clearly documented, but it appears to be available at the top-level within the google_monitoring_alert_policy
: see https://github.com/hashicorp/terraform-provider-google/blob/b88d951fd9446ea75321531f5e5e7c552859b0d0/google/services/monitoring/resource_monitoring_alert_policy_test.go#L273, added in version 5.10.0 in April 2024.
Task list
Acceptance criteria
- Failing uptime checks have severity
CRITICAL
- Missing uptime checks have severity
ERROR
- SSL renewal due checks have severity
WARNING