Created
May 27, 2020 18:57
-
-
Save rbotzer/4db1bc60bd9e02ba485abcbd32ec1606 to your computer and use it in GitHub Desktop.
An example of configuring a slack channel for Alertmanager alerts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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