Skip to content

Commit

Permalink
Trying to use discord webhook in alertmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryGF committed Aug 27, 2023
1 parent fa2b13e commit 9cc9d20
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion argocd/kube-prometheus-stack/values.common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ kube-prometheus-stack:
matchers:
- alertname =~ "InfoInhibitor|Watchdog"
receivers:
- name: 'null'
- name: 'discord-receiver'
webhook_configs:
- url: 'http://alertmanager-discord:9094'
templates:
- '/etc/alertmanager/config/*.tmpl'

Expand Down
1 change: 1 addition & 0 deletions terraform/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ kube-prometheus-stack:
duckdns_domain: ${duckdns_domain}
master_hostname: ${master_hostname}
master_ip: ${master_ip}
api_key: ${api_keys["discord_webhook_url"]}


homepage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ kube-prometheus-stack:
- hosts:
- "alertmanager.${duckdns_domain}.duckdns.org"
secretName: tls-alertmanager-ingress

prometheus:
ingress:
enabled: true
Expand Down Expand Up @@ -182,12 +183,12 @@ alertmanager-discord:
env:
# -- Discord Username
DISCORD_USERNAME: "Alertmanager"
DISCORD_WEBHOOK: "${api_key}"
# -- Discord Avatar icon
# DISCORD_AVATAR_URL: "https://avatars3.githubusercontent.com/u/3380462"
# -- Enable Verbose mode (log request and responses)
# VERBOSE: "ON"
# -- Discord Webhook - Can be used from envValueFrom secrets
# DISCORD_WEBHOOK=""
# DISCORD_WEBHOOK:
# valueFrom:
# secretKeyRef:
Expand Down
1 change: 1 addition & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ variable "api_keys" {
authelia_JWT_TOKEN = "authelia-jwt-token"
authelia_SESSION_ENCRYPTION_KEY = "authelia-session-encryption-key"
authelia_STORAGE_ENCRYPTION_KEY = "authelia-storage-encryption-key"
discord_webhook_url = "discord-webhook-url"
}
}

0 comments on commit 9cc9d20

Please sign in to comment.