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:
+
templates:
  - '/etc/prometheus/alertmanager_templates/*.tmpl'
+
- '/etc/prometheus/alertmanager_templates/*.tmpl'
+
<pre>
# The root route on which each incoming alert enters.
+
# The root route on which each incoming alert enters.
route:
+
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
+
# Inhibition rules allow to mute a set of alerts given that another alert is
# firing.
+
# firing.
# We use this to mute any warning-level notifications if the same alert is
+
# We use this to mute any warning-level notifications if the same alert is
# already critical.
+
# already critical.
inhibit_rules:
+
inhibit_rules:
- source_match:
+
- source_match:
 
     severity: 'critical'
 
     severity: 'critical'
 
   [[target_match:]]
 
   [[target_match:]]
Line 104: Line 104:
  
  
receivers:
+
receivers:
- name: 'team-X-mails'
+
- name: 'team-X-mails'
 
   email_configs:
 
   email_configs:
 
   - to: '[email protected]'
 
   - to: '[email protected]'
  
- name: 'team-X-pager'
+
- 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'
+
- name: 'team-Y-mails'
 
   email_configs:
 
   email_configs:
 
   - to: '[email protected]'
 
   - to: '[email protected]'
  
- name: 'team-Y-pager'
+
- name: 'team-Y-pager'
 
   pagerduty_configs:
 
   pagerduty_configs:
 
   - service_key: <team-Y-key>
 
   - service_key: <team-Y-key>
+
 
- name: 'team-DB-pager'
+
- name: 'team-DB-pager'
  pagerduty_configs:
+
  pagerduty_configs:
  - service_key: <team-DB-key>
+
  - service_key: <team-DB-key>
- name: 'team-X-hipchat'
+
- name: 'team-X-hipchat'
  hipchat_configs:
+
  hipchat_configs:
  - auth_token: <auth_token>
+
  - auth_token: <auth_token>
    room_id: 85
+
    room_id: 85
    message_format: html
+
    message_format: html
    notify: true
+
    notify: true
 +
</pre>
  
 
== Related ==
 
== Related ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: