alertmanager.yml 939 B

12345678910111213141516171819202122232425262728293031
  1. global:
  2. resolve_timeout: 5m
  3. # for mail (todo:需要邮件发送告警时需配置)
  4. # smtp_smarthost: smtp.qq.com:465
  5. # smtp_from: <smtp mail from>
  6. # smtp_auth_username: <username>
  7. # smtp_auth_identity: <username>
  8. # smtp_auth_password: <password>
  9. # smtp_require_tls: false
  10. route:
  11. group_by: ['alertname']
  12. group_wait: 10s
  13. group_interval: 10s
  14. repeat_interval: 1h
  15. receiver: 'default-receiver'
  16. receivers:
  17. - name: default-receiver
  18. # email_configs:
  19. # - to: <mail to address>
  20. # send_resolved: true
  21. webhook_configs: #todo:填写地址
  22. - url: 'http://localhost:9995/prometheusalert?type=dd&tpl=prometheus-dd&ddurl=钉钉机器人地址'
  23. - url: 'http://localhost:9995/prometheusalert?type=email&tpl=prometheus-email&email=Email地址'
  24. inhibit_rules:
  25. - source_match:
  26. severity: 'critical'
  27. target_match:
  28. severity: 'warning'
  29. equal: ['alertname', 'dev', 'instance']