Last active
January 26, 2017 10:26
-
-
Save kenzo0107/71574c2d4d70ba7a9efaa88b4ff1be1b to your computer and use it in GitHub Desktop.
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: | |
# The smarthost and SMTP sender used for mail notifications. | |
# smtp_smarthost: 'localhost:25' | |
# smtp_from: 'Alertmanager <[email protected]>' | |
route: | |
# デフォルト通知先 | |
receiver: "teamX" | |
# 同一アラート、クラスター、サービス(group_by)のアラートが | |
# 30秒(group_wait)以内に来たら同一アラートと見なし | |
# 10分(group_interval)毎にのみ通知する。 | |
# 一度通知したアラートは 1時間後(repeat_interval)に通知します。 | |
group_by: ['alertname', 'cluster', 'service'] | |
group_wait: 30s | |
group_interval: 10m | |
repeat_interval: 1h | |
# その他通知先 | |
routes: | |
# アラートの深刻度(severity) が critical の場合は sre へ通知 | |
- match: | |
severity: critical | |
receiver: sre | |
# 通知先一覧 | |
receivers: | |
- name: 'teamA' | |
slack_configs: | |
- api_url: 'https://hooks.slack.com/services/*********/*********/************************' | |
channel: '#notification' | |
send_resolved: true | |
- name: 'sre' | |
slack_configs: | |
- api_url: 'https://hooks.slack.com/services/*********/*********/************************' | |
channel: '#sre' | |
send_resolved: true | |
# 通知ミュート一覧 | |
inhibit_rules: | |
# アラートの深刻度(severity) が critical の場合、 | |
# 同一のアラート名で warning の場合は通知しない。 | |
- source_match: | |
severity: 'critical' | |
target_match: | |
severity: 'warning' | |
equal: ['alertname'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment