Skip to content

Instantly share code, notes, and snippets.

@rbotzer
Created May 27, 2020 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbotzer/4db1bc60bd9e02ba485abcbd32ec1606 to your computer and use it in GitHub Desktop.
Save rbotzer/4db1bc60bd9e02ba485abcbd32ec1606 to your computer and use it in GitHub Desktop.
An example of configuring a slack channel for Alertmanager alerts
# This is an example alertmanager.yaml which sends alert notifications to a slack channel.
global:
slack_api_url: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
route:
group_by: ['alertname', 'cluster', 'service']
receiver: slack_general
receivers:
- name: slack_general
slack_configs:
- channel: '#channel'
text: "summary: {{ .CommonAnnotations.summary }}\ndescription: {{ .CommonAnnotations.description }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment