BrandonWeng / alertmanager-discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alertmanager -> Discord Webhook

Recieves webhook from alert-manager and routes it to Discord.

Discord Example

Using the service

go build
./alertmanager-discord --webhook <webhook-url>
curl -X POST -H "Content-Type: application/json" -d @example/alert-manager.json  127.0.0.1:9094/alerts

You can also use the docker image: ghcr.io/brandonweng/alertmanager-discord:0.1.1

Using

# The root route on which each incoming alert enters.
route:
  group_by: ['alertname']
  group_wait: 20s
  group_interval: 5m
  repeat_interval: 3h
  receiver: discord_webhook

receivers:
- name: 'discord_webhook'
  webhook_configs:
  - url: 'http://localhost:9094/alerts' // If you're running in a container-network then replace localhost with your container name

See LICENSE

About

License:Apache License 2.0


Languages

Language:Go 87.8%Language:Shell 9.5%Language:Dockerfile 2.8%