2018-06-05 19:23:47 +08:00
|
|
|
|
alertmanagerFiles:
|
|
|
|
|
alertmanager.yml:
|
|
|
|
|
global:
|
|
|
|
|
smtp_smarthost: 'smtp.163.com:25'
|
|
|
|
|
smtp_from: 'xxxx@163.com'
|
|
|
|
|
smtp_auth_username: 'xxxx@163.com'
|
|
|
|
|
smtp_auth_password: '*********'
|
|
|
|
|
smtp_require_tls: false
|
|
|
|
|
|
|
|
|
|
route:
|
|
|
|
|
group_by: ['alertname', 'pod_name']
|
|
|
|
|
group_wait: 10s
|
|
|
|
|
group_interval: 5m
|
2019-02-02 17:35:50 +08:00
|
|
|
|
#receiver: AlertMail
|
|
|
|
|
receiver: dingtalk
|
2018-06-05 19:23:47 +08:00
|
|
|
|
repeat_interval: 3h
|
|
|
|
|
|
|
|
|
|
receivers:
|
|
|
|
|
- name: 'AlertMail'
|
|
|
|
|
email_configs:
|
|
|
|
|
- to: 'xxxx@163.com'
|
2019-02-02 17:35:50 +08:00
|
|
|
|
- name: dingtalk
|
|
|
|
|
webhook_configs:
|
|
|
|
|
- send_resolved: false
|
|
|
|
|
# 需要运行插件 dingtalk-webhook.yaml,详情阅读 docs/guide/prometheus.md
|
|
|
|
|
url: http://webhook-dingtalk.monitoring.svc.cluster.local:8060/dingtalk/webhook1/send
|
2018-06-05 19:23:47 +08:00
|
|
|
|
|