Closed KOTOXJle6 closed 4 years ago
You can use the --listen.addr
flag to specify the bind addr for the bot to create the HTTP server on:
https://github.com/metalmatze/alertmanager-bot/blob/master/cmd/alertmanager-bot/main.go#L88-L91
By default that's 0.0.0.0:8080
.
Hello!
Im trying to install bot and got some problems on ubuntu 20.04. Here is steps i've done:
1) Installed Go and run "GO111MODULE=on go get github.com/metalmatze/alertmanager-bot/cmd/alertmanager-bot"
2) Added to env TELEGRAM_ADMIN=id of my own telegram account and TELEGRAM_TOKEN=my bot's token
3) Edited config files prometheus.yml:
telegram.rules.yml:
alertmanager.yml:
Configs running without errors and other alerts works fine. If i run "sudo lsof -i -P -n | grep LISTEN", there is no 8080 port.
What am i doing wrong? Where i should enter chat id? Sorry if i created topic wrong way, didnt found any other discussions.