alertmanager-discord icon indicating copy to clipboard operation
alertmanager-discord copied to clipboard

Configuration file to manage multiple WebHooks

Open FinweVI opened this issue 3 years ago • 0 comments

Hello,

if we want to send alerts to various Discord Channels, each Channel having it's own WebHook, we have to run multiple instances of alertmanager-discord.

It could be nice to have a YAML configuration file storing endpoints and WebHooks.

For instance:

webhooks:
  - name: "channel1"
    webhook: "https://discord.com/api/webhooks/..."
  - name: "channel2"
    webhook: "https://discord.com/api/webhooks/..."

With alertmanager-discord having a routed endpoint on http://127.0.01:9094/channel1 and http://127.0.01:9094/channel2.

This would allow to send alerts to an infinite amount of channels with only one running daemon.

My Go is not top-nocht but I'm willing to try for a PR if there's any chance for it to be accepted.

FinweVI avatar Oct 16 '20 12:10 FinweVI