global: resolve_timeout: 5m # for mail (todo:需要邮件发送告警时需配置) # smtp_smarthost: smtp.qq.com:465 # smtp_from: # smtp_auth_username: # smtp_auth_identity: # smtp_auth_password: # smtp_require_tls: false route: group_by: ['alertname'] group_wait: 10s group_interval: 10s repeat_interval: 1h receiver: 'default-receiver' receivers: - name: default-receiver # email_configs: # - to: # send_resolved: true webhook_configs: #todo:填写地址 - url: 'http://localhost:9995/prometheusalert?type=dd&tpl=prometheus-dd&ddurl=钉钉机器人地址' - url: 'http://localhost:9995/prometheusalert?type=email&tpl=prometheus-email&email=Email地址' inhibit_rules: - source_match: severity: 'critical' target_match: severity: 'warning' equal: ['alertname', 'dev', 'instance']