All Projects → benjojo → alertmanager-discord

benjojo / alertmanager-discord

Licence: Apache-2.0 license
Take your alertmanager alerts, into discord

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to alertmanager-discord

calert
Send alert notifications to Google Chat via Prometheus Alertmanager
Stars: ✭ 78 (-41.79%)
Mutual labels:  alertmanager
Dockprom
Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
Stars: ✭ 4,489 (+3250%)
Mutual labels:  alertmanager
PrometheusWithGrafana
Setup Prometheus with Grafana dashboard using Ansible
Stars: ✭ 50 (-62.69%)
Mutual labels:  alertmanager
mattermost-plugin-alertmanager
AlertManager Bot for Mattermost
Stars: ✭ 48 (-64.18%)
Mutual labels:  alertmanager
alertmanager-dingtalk-hook
alertmanager dingtalk webhook simple server 🍋 🍊 🍒 🍰 🍇 🍉 🍓 🌽 🍑
Stars: ✭ 67 (-50%)
Mutual labels:  alertmanager
Prometheus Book
Prometheus操作指南
Stars: ✭ 2,637 (+1867.91%)
Mutual labels:  alertmanager
robusta
Open source Kubernetes monitoring, troubleshooting, and automation platform
Stars: ✭ 772 (+476.12%)
Mutual labels:  alertmanager
AlertKit
🚨 SwiftUI alerts (and action sheets) done right
Stars: ✭ 60 (-55.22%)
Mutual labels:  alertmanager
docker-prometheus
A minimal Prometheus Server, Node Exporter, BlackBox Exporter and Grafana implementation with `docker-compose`.
Stars: ✭ 71 (-47.01%)
Mutual labels:  alertmanager
signalilo
Forward alerts from Prometheus Alertmanager to Icinga2 via Webhooks
Stars: ✭ 57 (-57.46%)
Mutual labels:  alertmanager
dockerize-and-ansible
🐳 Build & Deploy the containerized Dev & Prod Env
Stars: ✭ 20 (-85.07%)
Mutual labels:  alertmanager
loki exporter
Prometheus exporter to collect metrics and run queries against the Grafana Loki API.
Stars: ✭ 28 (-79.1%)
Mutual labels:  alertmanager
Awesome Prometheus Alerts
🚨 Collection of Prometheus alerting rules
Stars: ✭ 3,323 (+2379.85%)
Mutual labels:  alertmanager
workshop-prometheus
Workshop Prometheus ♥️ Grafana
Stars: ✭ 13 (-90.3%)
Mutual labels:  alertmanager
Alertmanager
Alertmanager for macOS.
Stars: ✭ 49 (-63.43%)
Mutual labels:  alertmanager
ceph-prometheus-rules
Prometheus Rules to monitor CEPH instances
Stars: ✭ 17 (-87.31%)
Mutual labels:  alertmanager
Alertmanager
Prometheus Alertmanager
Stars: ✭ 4,574 (+3313.43%)
Mutual labels:  alertmanager
Prometheus-grafana
Monitor your Kubernetes cluster resources and applications
Stars: ✭ 21 (-84.33%)
Mutual labels:  alertmanager
matrix-alertmanager
A bot to receive Alertmanager webhook events and forward them to chosen rooms.
Stars: ✭ 49 (-63.43%)
Mutual labels:  alertmanager
Graylog-Plugin-AlertManager-Callback
A plugin for Graylog which provides the possibility to send alerts to the Prometheus AlertManager API.
Stars: ✭ 23 (-82.84%)
Mutual labels:  alertmanager

alertmanager-discord

Give this a webhook (with the DISCORD_WEBHOOK environment variable) and point it as a webhook on alertmanager, and it will post your alerts into a discord channel for you as they trigger:

Warning

This program is not a replacement to alertmanager, it accepts webhooks from alertmanager, not prometheus.

The standard "dataflow" should be:

Prometheus -------------> alertmanager -------------------> alertmanager-discord

alerting:                 receivers:                         
  alertmanagers:          - name: 'discord_webhook'         environment:
  - static_configs:         webhook_configs:                   - DISCORD_WEBHOOK=https://discordapp.com/api/we...
    - targets:              - url: 'http://localhost:9094'  
       - 127.0.0.1:9093   





Example alertmanager config:

global:
  # The smarthost and SMTP sender used for mail notifications.
  smtp_smarthost: 'localhost:25'
  smtp_from: '[email protected]'
  smtp_auth_username: 'alertmanager'
  smtp_auth_password: 'password'

# The directory from which notification templates are read.
templates: 
- '/etc/alertmanager/template/*.tmpl'

# 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'

Docker

If you run a fancy docker/k8s infra, you can find the docker hub repo here: https://hub.docker.com/r/benjojo/alertmanager-discord/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].