Skip to content

Instantly share code, notes, and snippets.

@lisp-ceo
Created November 24, 2016 00:29
Show Gist options
  • Save lisp-ceo/288cc196c5eb4fea6ce8c47f7c0a40e5 to your computer and use it in GitHub Desktop.
Save lisp-ceo/288cc196c5eb4fea6ce8c47f7c0a40e5 to your computer and use it in GitHub Desktop.
Configuring slack hook for prometheus
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'codelab-monitor'
alerting:
receivers:
- name: "slack"
slack_configs:
send_resolved: true
api_url: "https://hooks.slack.com/services/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"
username: "Prometheus"
icon_emoji: ":happy-bmo:"
@SuperQ
Copy link

SuperQ commented Nov 24, 2016

This alerting: configuration needs to go into the alertmanager, not prometheus. Prometheus only sends alert is firing messages with labels. The alertmanager is responsible for routing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment