kubeasz/roles/cluster-addon/templates/prometheus/example-config-alertsmanage...

28 lines
758 B
YAML
Raw Normal View History

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
#receiver: AlertMail
receiver: dingtalk
2018-06-05 19:23:47 +08:00
repeat_interval: 3h
receivers:
- name: 'AlertMail'
email_configs:
- to: 'xxxx@163.com'
- 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