]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/cephadm/templates/services/alertmanager/alertmanager.yml.j2
import quincy beta 17.1.0
[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
6
7route:
f6b5b4d7
TL
8 receiver: 'default'
9 routes:
10 - group_by: ['alertname']
11 group_wait: 10s
12 group_interval: 10s
13 repeat_interval: 1h
14 receiver: 'ceph-dashboard'
20effc67
TL
15{% if snmp_gateway_urls %}
16 continue: true
17 - receiver: 'snmp-gateway'
18 repeat_interval: 1h
19 group_interval: 10s
20 group_by: ['alertname']
21 match_re:
22 oid: "(1.3.6.1.4.1.50495.).*"
23{% endif %}
f6b5b4d7 24
e306af50 25receivers:
f6b5b4d7
TL
26- name: 'default'
27 webhook_configs:
28{% for url in default_webhook_urls %}
29 - url: '{{ url }}'
30{% endfor %}
e306af50
TL
31- name: 'ceph-dashboard'
32 webhook_configs:
33{% for url in dashboard_urls %}
a4b75251 34 - url: '{{ url }}/api/prometheus_receiver'
e306af50 35{% endfor %}
20effc67
TL
36{% if snmp_gateway_urls %}
37- name: 'snmp-gateway'
38 webhook_configs:
39{% for url in snmp_gateway_urls %}
40 - url: '{{ url }}'
41{% endfor %}
42{% endif %}