Created
November 24, 2016 00:29
-
-
Save lisp-ceo/288cc196c5eb4fea6ce8c47f7c0a40e5 to your computer and use it in GitHub Desktop.
Configuring slack hook for prometheus
This file contains hidden or 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
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:" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.