prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.66k stars 2.16k forks source link

slack notify retry canceled due to unrecoverable error 403 #3727

Open johirulalam opened 8 months ago

johirulalam commented 8 months ago

ts=2024-02-18T18:53:00.366Z caller=dispatch.go:352 level=error component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="slack-notifications/slack[0]: notify retry canceled due to unrecoverable error after 1 attempts: channel \"#monitoring\": unexpected status code 403: invalid_token"

alertmanager.yml global: slack_api_url: 'https://hooks.slack.com/services/T06L1G****'

route: receiver: 'slack-notifications'

receivers:

Rules

groups:

rapphil commented 5 months ago

Hi, 403 error codes should not be retried. IT seems that there is some issue with your slack configuration: https://api.slack.com/messaging/webhooks#handling_errors

ktnvaish22 commented 3 months ago

Hi @rapphil Does alertmanager retry only 5xx errors? Is there a documentation present on retry mechanism of Alertmanager?