alertmanager-discord

command module
v0.0.0-...-c744aec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL