kubeasz/manifests/prometheus/prom-alertsmanager.yaml

28 lines
758 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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