Closed CHIP0K closed 3 years ago
Log errors:
alertmanager-tg-bot | level=info ts=2021-01-22T10:20:56.721240074Z caller=retry.go:56 component=telegram msg=retrying duration=235.816935ms err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=info ts=2021-01-22T10:20:56.95819906Z caller=retry.go:56 component=telegram msg=retrying duration=215.565915ms err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=info ts=2021-01-22T10:20:57.175070222Z caller=retry.go:56 component=telegram msg=retrying duration=316.434094ms err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=info ts=2021-01-22T10:20:57.492749263Z caller=retry.go:56 component=telegram msg=retrying duration=581.088206ms err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=info ts=2021-01-22T10:20:58.074828136Z caller=retry.go:56 component=telegram msg=retrying duration=1.084056692s err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=info ts=2021-01-22T10:20:59.160114765Z caller=retry.go:56 component=telegram msg=retrying duration=2.069283871s err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=info ts=2021-01-22T10:21:01.230512183Z caller=retry.go:56 component=telegram msg=retrying duration=1.586228489s err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused" url=http://localhost:9093/api/v1/status alertmanager-tg-bot | level=warn ts=2021-01-22T10:21:02.81810591Z caller=bot.go:364 component=telegram msg="failed to get status" err="Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused"
docker run:
docker run -d \ -e 'ALERTMANAGER_URL=http://alertmanager:9093' \ -e 'BOLT_PATH=/data/bot.db' \ -e 'STORE=bolt' \ -e 'TELEGRAM_ADMIN=1111111' \ -e 'TELEGRAM_TOKEN=*****************8' \ -v '/srv/monitoring/alertmanager-bot:/data' \ --name alertmanager-bot \ metalmatze/alertmanager-bot:0.4.2
chat message: failed to get status... Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused
failed to get status... Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused
/ # netstat -ntpl Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.11:42263 0.0.0.0:* LISTEN - tcp 0 0 :::8080 :::* LISTEN 1/alertmanager-bot```
Log errors:
docker run:
chat message:
failed to get status... Get http://localhost:9093/api/v1/status: dial tcp 127.0.0.1:9093: connect: connection refused