Skip to content

Commit

Permalink
gatus: add discord alert
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaDev committed Jan 6, 2025
1 parent 2e96005 commit e471bea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
9 changes: 7 additions & 2 deletions apps/monitoring/gatus/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ spec:
creationPolicy: Owner
template:
engineVersion: v2
data: {}
data: []
data:
DISCORD_WEBHOOK: "{.discord_webhook}"
data:
- secretKey: discord_webhook
remoteRef:
key: discordapp.com
property: alert_webhook
6 changes: 4 additions & 2 deletions apps/monitoring/gatus/app/resources/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ debug: false
ui:
title: Status | Gatus
header: Status
alerting:
connectivity:
checker:
target: 1.1.1.1:53
Expand All @@ -25,4 +24,7 @@ endpoints:
conditions:
- "[STATUS] == 404"
alerts:
- type: pushover
- type: discord
alerting:
discord:
webhook-url: ${DISCORD_WEBHOOK}
2 changes: 2 additions & 0 deletions templates/gatus/external/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ data:
dns-resolver: tcp://1.1.1.1:53
conditions:
- "[STATUS] == ${GATUS_STATUS:-200}"
alerts:
- type: discord
2 changes: 2 additions & 0 deletions templates/gatus/internal/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ data:
interval: 1m
conditions:
- "[STATUS] == ${GATUS_STATUS:-200}"
alerts:
- type: discord

0 comments on commit e471bea

Please sign in to comment.