Skip to content

Instantly share code, notes, and snippets.

@eskp
Created March 22, 2017 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eskp/5035300857f893bb65d8e6494049d056 to your computer and use it in GitHub Desktop.
Save eskp/5035300857f893bb65d8e6494049d056 to your computer and use it in GitHub Desktop.
slack_configs:
- api_url: "<slack_auth url here>"
channel: '#devops'
send_resolved: true
title: "{{ .GroupLabels.alertname }} alert is {{ .Status|toUpper }} in {{ .CommonLabels.env }}"
text: |
Affected instances {{ range .Alerts }}{{ .Labels.instance }}/{{ .Labels.job }} {{ .Labels.target }} {{ end }}
{{ .CommonAnnotations.description }}
See http://docs.airtame.cloud/alerts/{{ .GroupLabels.alertname }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment