Alertmanager
Alertmanager
虽然
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- "192.168.0.107:9093"
这个配置告诉
$ ./prometheus -alertmanager.url=http://192.168.0.107:9093
告警信息推送
默认的配置文件
global:
resolve_timeout: 5m
route:
group_by: ["alertname"]
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: "web.hook"
receivers:
- name: "web.hook"
webhook_configs:
- url: "http://127.0.0.1:5001/"
inhibit_rules:
- source_match:
severity: "critical"
target_match:
severity: "warning"
equal: ["alertname", "dev", "instance"]
其中
routes:
- receiver: "database-pager"
group_wait: 10s
match_re:
service: mysql|cassandra
- receiver: "frontend-pager"
group_by: [product, environment]
match:
team: frontend
紧接着,
- email_config
- hipchat_config
- pagerduty_config
- pushover_config
- slack_config
- opsgenie_config
- victorops_config
- wechat_configs
- webhook_config