fix(gatus): Add Grafana IRM Alerting
This commit is contained in:
@@ -22,6 +22,28 @@ config:
|
||||
header: Oceanbox Service Status
|
||||
logo: https://maps.oceanbox.io/ob.png
|
||||
link: https://maps.oceanbox.io
|
||||
default-sort-by: "group"
|
||||
|
||||
alerting:
|
||||
custom:
|
||||
url: "https://oncall-prod-eu-west-0.grafana.net/oncall/integrations/v1/formatted_webhook/WmWq7fQWMJtv1Xty1V4jJHqRV/"
|
||||
method: "POST"
|
||||
body: |
|
||||
{
|
||||
"title": "[ENDPOINT_GROUP] ➔ [ENDPOINT_NAME]",
|
||||
"message": "[ALERT_TRIGGERED_OR_RESOLVED]: [ENDPOINT_GROUP] ➔ [ENDPOINT_NAME] ➔ [ALERT_DESCRIPTION]",
|
||||
"state": "[ALERT_TRIGGERED_OR_RESOLVED]",
|
||||
"image_url": ""
|
||||
}
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
send-on-resolved: true
|
||||
failure-threshold: 3
|
||||
success-threshold: 2
|
||||
placeholders:
|
||||
ALERT_TRIGGERED_OR_RESOLVED:
|
||||
TRIGGERED: "alerting"
|
||||
RESOLVED: "ok"
|
||||
|
||||
.defaults: &defaults
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user