Sign inSign up

pando85/alertmanager-telegram-forwarder

By pando85

Updated about 4 years ago

Alertmanager webhook to forward notifications to telegram

Image
0

1.7K

pando85/alertmanager-telegram-forwarder repository overview

alertmanager-telegram-forwarder Build Status License

Alertmanager webhook to forward notifications to telegram using templates and based in OpenAPI specs.

Config

EnvDescriptionDefault
API_SPECS_PATHOpenAPI specs pathdocs/api/v1/openapi.yaml
LOG_LEVELLog level: [DEBUG, INFO, WARNING, ERROR, CRITICAL]INFO
TELEGRAM_BOT_TOKENTelegram bot token``
TEMPLATE_PATHJinja2 template used to forward messages
Alertmanager

Must set up a webhook_config in alertmanager.yml. Replace {CHAT_ID} with a desired Telegram chat ID.

receivers:
- name: telegram
  webhook_configs:
  - send_resolved: true
    http_config: {}
    url: http://alertmanager-telegram-forwarder:8080/v1/alerts/{CHAT_ID}

You can contact with @myidbot to get your current chat ID.

Deployment

Tag summary

Content type

Image

Digest

sha256:b91b1940a

Size

54.2 MB

Last updated

about 4 years ago

docker pull pando85/alertmanager-telegram-forwarder