Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file to manage multiple WebHooks #10

Open
FinweVI opened this issue Oct 16, 2020 · 0 comments
Open

Configuration file to manage multiple WebHooks #10

FinweVI opened this issue Oct 16, 2020 · 0 comments

Comments

@FinweVI
Copy link
Contributor

FinweVI commented Oct 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant