2018-12-06 02:59:47 +08:00
|
|
|
global:
|
|
|
|
resolve_timeout: 5m
|
|
|
|
|
|
|
|
route:
|
|
|
|
group_by: ['alertname']
|
|
|
|
group_wait: 10s
|
|
|
|
group_interval: 10s
|
|
|
|
repeat_interval: 1h
|
|
|
|
receiver: 'ceph-dashboard'
|
|
|
|
receivers:
|
|
|
|
- name: 'ceph-dashboard'
|
|
|
|
webhook_configs:
|
|
|
|
{% for host in groups['mgrs'] | default(groups['mons']) %}
|
2021-03-03 22:43:50 +08:00
|
|
|
- url: '{{ dashboard_protocol }}://{{ hostvars[host]['ansible_facts']['fqdn'] }}:{{ dashboard_port }}/api/prometheus_receiver'
|
2021-07-23 22:27:55 +08:00
|
|
|
{% if dashboard_protocol == 'https' and alertmanager_dashboard_api_no_ssl_verify | bool %}
|
|
|
|
http_config:
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
{% endif %}
|
2018-12-06 02:59:47 +08:00
|
|
|
{% endfor %}
|