Skip to content

Slack Integration does not respect rate limiting #2111

@gavk34

Description

@gavk34

What did you do?
Starting seeing the following errors in AlertManager

level=error ts=2019-11-21T09:02:58.967Z caller=notify.go:372 component=dispatcher msg="Error on notify" err="cancelling notify retry for \"slack\" due to unrecoverable error: unexpected status code 429: {\"retry_after\":1,\"ok\":false,\"error\":\"rate_limited\"}" context_err=null
level=error ts=2019-11-21T09:02:58.967Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=2 err="cancelling notify retry for \"slack\" due to unrecoverable error: unexpected status code 429: {\"retry_after\":1,\"ok\":false,\"error\":\"rate_limited\"}"

What did you expect to see?
I would expect the dispatcher to respect the retry_after and try later rather than failing

What did you see instead? Under which circumstances?
Increase volume of alerts triggered

Environment

  • System information:

    Docker container

  • Alertmanager version:

    v0.19.0

  • Prometheus version:

    N/A

  • Alertmanager configuration file:
    N/A - contains confidential information

  • Prometheus configuration file:
    N/A

  • Logs:

level=error ts=2019-11-21T09:02:58.967Z caller=notify.go:372 component=dispatcher msg="Error on notify" err="cancelling notify retry for \"slack\" due to unrecoverable error: unexpected status code 429: {\"retry_after\":1,\"ok\":false,\"error\":\"rate_limited\"}" context_err=null
level=error ts=2019-11-21T09:02:58.967Z caller=dispatch.go:266 component=dispatcher msg="Notify for alerts failed" num_alerts=2 err="cancelling notify retry for \"slack\" due to unrecoverable error: unexpected status code 429: {\"retry_after\":1,\"ok\":false,\"error\":\"rate_limited\"}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions