项目作者: nopp

项目描述 :
Simple webhook - Alertmanager to telegram (go version)
高级语言: Go
项目地址: git://github.com/nopp/alertmanager-webhook-telegram-go.git
创建时间: 2020-04-18T13:37:15Z
项目社区:https://github.com/nopp/alertmanager-webhook-telegram-go

开源协议:

下载


Alertmanager webhook for Telegram (GO Version)

Go
Docker Image CI
Code scanning - action

Python Version (https://github.com/nopp/alertmanager-webhook-telegram-python)

Go version 1.13.9

INSTALL

  • go get -d .

Alertmanager configuration example

  1. receivers:
  2. - name: 'telegram-webhook'
  3. webhook_configs:
  4. - url: http://ipGoAlert:9229/alert
  5. send_resolved: true

Running on docker

  1. git clone https://github.com/nopp/alertmanager-webhook-telegram-go.git
  2. cd alertmanager-webhook-telegram-go/docker/
  3. docker build -t awt-go:0.1 .
  4. docker run -d --name awt-go-bot \
  5. -e "bottoken=telegramBotToken" \
  6. -e "chatid=telegramChatID" \
  7. -p 9229:9229 awt-go:0.1