benjojo / alertmanager-discord

Take your alertmanager alerts, into discord
Apache License 2.0
177 stars 78 forks source link

Alertmanager giving POST Error #38

Closed OxHimanshu closed 1 year ago

OxHimanshu commented 1 year ago
Screenshot 2022-12-19 at 1 27 19 PM

alertmanager.yml global: resolve_timeout: 5m

route: group_by: ['instance', 'severity'] group_wait: 30s group_interval: 5m repeat_interval: 30m receiver: 'discord_webhook' routes:

receivers:

OxHimanshu commented 1 year ago
Screenshot 2022-12-19 at 1 31 16 PM

While Curl localhost:9094 giving empty reply from server

benjojo commented 1 year ago

Server misbehaving (as seen in the screenshot) is a DNS error and so not related to this

On Mon, 19 Dec 2022, 09:01 OxHimanshu, @.***> wrote:

[image: Screenshot 2022-12-19 at 1 31 16 PM] https://user-images.githubusercontent.com/61224737/208376134-ede9de29-2c23-4b3c-acc0-ba77edae01a4.png

While Curl localhost:9094 giving empty reply from server

— Reply to this email directly, view it on GitHub https://github.com/benjojo/alertmanager-discord/issues/38#issuecomment-1357235314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPK4R6UPNTMQCZYWEVS4DWOAI7NANCNFSM6AAAAAATDB42FA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

OxHimanshu commented 1 year ago

When I changed url: 'http://nifty_gagarin:9094' ----> url: 'http://localhost:9094' then also same error

Screenshot 2022-12-19 at 2 13 10 PM
OxHimanshu commented 1 year ago

Hey @benjojo, facing the issue again and again

Screenshot 2022-12-27 at 2 55 21 PM
benjojo commented 1 year ago

What are the logs from the alertmanager-discord itself?

On Tue, 27 Dec 2022, 10:24 OxHimanshu, @.***> wrote:

Hey @benjojo https://github.com/benjojo, facing the issue again and again [image: Screenshot 2022-12-27 at 2 54 28 PM] https://user-images.githubusercontent.com/61224737/209644407-bd769b78-ea3e-4c86-ba83-342fe0d0dfd6.png

— Reply to this email directly, view it on GitHub https://github.com/benjojo/alertmanager-discord/issues/38#issuecomment-1365750999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPK4RL7MFP4SVL5VF5CP3WPKYWRANCNFSM6AAAAAATDB42FA . You are receiving this because you were mentioned.Message ID: @.***>

OxHimanshu commented 1 year ago
Screenshot 2022-12-27 at 2 58 14 PM
benjojo commented 1 year ago

Ah. So alertmanager-discord is running in docker but alertmanager is not.

You should consider using upgrading your alertmanager version and using the new built in discord feature.

https://github.com/prometheus/alertmanager/pull/2948

Should be in 0.25

On Tue, 27 Dec 2022, 10:28 OxHimanshu, @.***> wrote:

[image: Screenshot 2022-12-27 at 2 58 14 PM] https://user-images.githubusercontent.com/61224737/209644941-800e79b3-d1ee-429c-b0b7-50a14cfbe113.png

— Reply to this email directly, view it on GitHub https://github.com/benjojo/alertmanager-discord/issues/38#issuecomment-1365753205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPK4QWVSD4VPGIR25SIF3WPKZEDANCNFSM6AAAAAATDB42FA . You are receiving this because you were mentioned.Message ID: @.***>

OxHimanshu commented 1 year ago

Getting the same error even after upgrading the alertmanager to 0.25 Restarted the alertmanager.service too @benjojo

Screenshot 2022-12-27 at 3 20 15 PM Screenshot 2022-12-27 at 3 21 03 PM
benjojo commented 1 year ago

No as in, with Alert Manager v0.25, there is discord support built in, no need for alertmanager-discord!

On Tue, Dec 27, 2022 at 10:51 AM OxHimanshu @.***> wrote:

Getting the same error even after upgrading the alertmanager to 0.25 @benjojo https://github.com/benjojo

[image: Screenshot 2022-12-27 at 3 20 15 PM] https://user-images.githubusercontent.com/61224737/209648088-f9f916b9-e2b0-4956-9aa1-70225fd36742.png

[image: Screenshot 2022-12-27 at 3 21 03 PM] https://user-images.githubusercontent.com/61224737/209648200-8c8856c9-15d1-41fb-a8f7-3aadc2011ca1.png

— Reply to this email directly, view it on GitHub https://github.com/benjojo/alertmanager-discord/issues/38#issuecomment-1365767237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALPK4TPJ2HFKH2LCY4ZURLWPK33NANCNFSM6AAAAAATDB42FA . You are receiving this because you were mentioned.Message ID: @.***>

OxHimanshu commented 1 year ago

fixed. Thanks a lot @benjojo