benjojo / alertmanager-discord

Take your alertmanager alerts, into discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alertmanager giving POST Error

OxHimanshu opened this issue · comments

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:
- matchers:
- instance =~ "x.x.x.x:5054|x.x.x.x:6060"
group_wait: 30s
receiver: 'discord_webhook'
continue: true

receivers:

  • name: 'discord_webhook'
    webhook_configs:
    • url: 'http://nifty_gagarin:9094'
      send_resolved: true

Screenshot 2022-12-19 at 1 31 16 PM

While Curl localhost:9094 giving empty reply from server

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

Hey @benjojo, facing the issue again and again
Screenshot 2022-12-27 at 2 55 21 PM

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

fixed. Thanks a lot @benjojo