]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/cephadm/templates/services/alertmanager/alertmanager.yml.j2
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / cephadm / templates / services / alertmanager / alertmanager.yml.j2
CommitLineData
e306af50
TL
1# {{ cephadm_managed }}
2# See https://prometheus.io/docs/alerting/configuration/ for documentation.
3
4global:
5 resolve_timeout: 5m
33c7a0ef
TL
6{% if not secure %}
7 http_config:
8 tls_config:
1e59de90
TL
9{% if secure_monitoring_stack %}
10 ca_file: root_cert.pem
11{% else %}
33c7a0ef
TL
12 insecure_skip_verify: true
13{% endif %}
1e59de90 14{% endif %}
e306af50
TL
15
16route:
f6b5b4d7
TL
17 receiver: 'default'
18 routes:
19 - group_by: ['alertname']
20 group_wait: 10s
21 group_interval: 10s
22 repeat_interval: 1h
23 receiver: 'ceph-dashboard'
20effc67
TL
24{% if snmp_gateway_urls %}
25 continue: true
26 - receiver: 'snmp-gateway'
27 repeat_interval: 1h
28 group_interval: 10s
29 group_by: ['alertname']
30 match_re:
31 oid: "(1.3.6.1.4.1.50495.).*"
32{% endif %}
f6b5b4d7 33
e306af50 34receivers:
f6b5b4d7
TL
35- name: 'default'
36 webhook_configs:
37{% for url in default_webhook_urls %}
38 - url: '{{ url }}'
39{% endfor %}
e306af50
TL
40- name: 'ceph-dashboard'
41 webhook_configs:
42{% for url in dashboard_urls %}
a4b75251 43 - url: '{{ url }}/api/prometheus_receiver'
e306af50 44{% endfor %}
20effc67
TL
45{% if snmp_gateway_urls %}
46- name: 'snmp-gateway'
47 webhook_configs:
48{% for url in snmp_gateway_urls %}
49 - url: '{{ url }}'
50{% endfor %}
51{% endif %}