Editing /etc/prometheus/alertmanager.yml
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 21: | Line 21: | ||
# The directory from which notification templates are read. | # The directory from which notification templates are read. | ||
− | + | templates: | |
− | + | - '/etc/prometheus/alertmanager_templates/*.tmpl' | |
− | + | <pre> | |
− | + | # The root route on which each incoming alert enters. | |
− | + | route: | |
# The labels by which incoming alerts are grouped together. For example, | # The labels by which incoming alerts are grouped together. For example, | ||
# multiple alerts coming in for cluster=A and alertname=LatencyHigh would | # multiple alerts coming in for cluster=A and alertname=LatencyHigh would | ||
Line 91: | Line 91: | ||
− | + | # Inhibition rules allow to mute a set of alerts given that another alert is | |
− | + | # firing. | |
− | + | # We use this to mute any warning-level notifications if the same alert is | |
− | + | # already critical. | |
− | + | inhibit_rules: | |
− | + | - source_match: | |
severity: 'critical' | severity: 'critical' | ||
[[target_match:]] | [[target_match:]] | ||
Line 104: | Line 104: | ||
− | + | receivers: | |
− | + | - name: 'team-X-mails' | |
email_configs: | email_configs: | ||
- to: '[email protected]' | - to: '[email protected]' | ||
− | + | - name: 'team-X-pager' | |
email_configs: | email_configs: | ||
- to: '[email protected]' | - to: '[email protected]' | ||
Line 115: | Line 115: | ||
- service_key: <team-X-key> | - service_key: <team-X-key> | ||
− | + | - name: 'team-Y-mails' | |
email_configs: | email_configs: | ||
- to: '[email protected]' | - to: '[email protected]' | ||
− | + | - name: 'team-Y-pager' | |
pagerduty_configs: | pagerduty_configs: | ||
- service_key: <team-Y-key> | - service_key: <team-Y-key> | ||
− | + | ||
− | + | - name: 'team-DB-pager' | |
− | + | pagerduty_configs: | |
− | + | - service_key: <team-DB-key> | |
− | + | - name: 'team-X-hipchat' | |
− | + | hipchat_configs: | |
− | + | - auth_token: <auth_token> | |
− | + | room_id: 85 | |
− | + | message_format: html | |
− | + | notify: true | |
+ | </pre> | ||
== Related == | == Related == |
Advertising: