Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slack notify retry canceled due to unrecoverable error 403 #3727

Open
johirulalam opened this issue Feb 18, 2024 · 1 comment
Open

slack notify retry canceled due to unrecoverable error 403 #3727

johirulalam opened this issue Feb 18, 2024 · 1 comment

Comments

@johirulalam
Copy link

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:

  • name: 'slack-notifications'
    slack_configs:
    • channel: '#monitoring'

Rules

groups:

  • name: os
    rules:

    • alert: NodeExporterDown
      expr: up{job="node_exporter"} == 0
      for: 15s
      labels:
      severity: critical
      annotations:
      summary: "Node Exporter is down"
      description: "Node Exporter is down for more than 2 minutes"
@rapphil
Copy link

rapphil commented May 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants