mirror of https://github.com/easzlab/kubeasz.git
28 lines
758 B
YAML
28 lines
758 B
YAML
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
|
||
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
|
||
|