2017-03-09 06:12:27 -05:00
|
|
|
prometheus:
|
|
|
|
alertmanager:
|
|
|
|
enabled: true
|
2017-05-19 08:02:17 -04:00
|
|
|
dir:
|
2017-05-17 10:00:52 -04:00
|
|
|
config: /srv/volumes/prometheus/alertmanager
|
|
|
|
data: /srv/volumes/local/prometheus/alertmanager
|
2017-03-09 06:12:27 -05:00
|
|
|
bind:
|
|
|
|
address: 0.0.0.0
|
|
|
|
port: 9093
|
2017-05-19 08:02:17 -04:00
|
|
|
external_port: 15011
|
2017-03-09 06:12:27 -05:00
|
|
|
config:
|
|
|
|
global:
|
|
|
|
resolve_timeout: 5m
|
|
|
|
route:
|
|
|
|
group_by: ['alertname', 'region', 'service']
|
|
|
|
group_wait: 60s
|
|
|
|
group_interval: 5m
|
|
|
|
repeat_interval: 3h
|
|
|
|
receiver: HTTP-notification
|
|
|
|
inhibit_rules:
|
|
|
|
- source_match:
|
|
|
|
severity: 'down'
|
|
|
|
target_match:
|
|
|
|
severity: 'critical'
|
|
|
|
equal: ['region', 'service']
|
|
|
|
- source_match:
|
|
|
|
severity: 'down'
|
|
|
|
target_match:
|
|
|
|
severity: 'warning'
|
|
|
|
equal: ['region', 'service']
|
|
|
|
- source_match:
|
|
|
|
severity: 'critical'
|
|
|
|
target_match:
|
|
|
|
severity: 'warning'
|
|
|
|
equal: ['alertname', 'region', 'service']
|
|
|
|
receivers:
|
|
|
|
- name: 'HTTP-notification'
|
|
|
|
webhook_configs:
|
|
|
|
- url: http://127.0.0.1
|
|
|
|
send_resolved: true
|
2017-09-13 07:43:46 -04:00
|
|
|
- name: 'HTTP-slack'
|
|
|
|
slack_configs:
|
|
|
|
- api_url: http://127.0.0.1/slack
|
|
|
|
send_resolved: true
|
|
|
|
- name: 'smtp'
|
|
|
|
email_configs:
|
|
|
|
- to: test@example.com
|
|
|
|
from: test@example.com
|
|
|
|
smarthost: example.com
|
|
|
|
auth_username: username
|
|
|
|
auth_password: password
|
|
|
|
send_resolved: true
|
2017-05-19 08:02:17 -04:00
|
|
|
docker:
|
|
|
|
host:
|
|
|
|
enabled: true
|
|
|
|
experimental: true
|
|
|
|
insecure_registries:
|
|
|
|
- 127.0.0.1
|
|
|
|
log:
|
|
|
|
engine: json-file
|
2017-05-17 10:00:52 -04:00
|
|
|
size: 50m
|