Skip to content

dsmith73/alertmanager-discord

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alertmanager-discord

Summary

A minimal docker image with golang application, which listens for Prometheus Alertmanager's notifications and pushes them to Discord channel.

Repository name in Docker Hub: skandyla/alertmanager-discord
Published via automated build mechanism

Environment configuration variables

DISCORD_WEBHOOK - webhook, where to post alerts. For more details see: https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks
DISCORD_NAME - bot name at Discord. Default AlertManager.

Example Prometheus Alertmanager config:

Example Alertmanager config:

global:
  # The smarthost and SMTP sender used for mail notifications.
  smtp_smarthost: 'localhost:25'
  smtp_from: '[email protected]'
  smtp_require_tls: false

# The root route on which each incoming alert enters.
route:
  group_by: ['alertname', 'cluster', 'service']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 4h
  receiver: discord_webhook

receivers:
- name: 'discord_webhook'
  webhook_configs:
  - url: 'http://localhost:9095'

For more details see: https://prometheus.io/docs/alerting/configuration/

About

Take your alertmanager alerts, into discord

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 79.1%
  • Dockerfile 20.9%