]> git.proxmox.com Git - ceph.git/blob - 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
1 # {{ cephadm_managed }}
2 # See https://prometheus.io/docs/alerting/configuration/ for documentation.
3
4 global:
5 resolve_timeout: 5m
6
7 route:
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'
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 %}
24
25 receivers:
26 - name: 'default'
27 webhook_configs:
28 {% for url in default_webhook_urls %}
29 - url: '{{ url }}'
30 {% endfor %}
31 - name: 'ceph-dashboard'
32 webhook_configs:
33 {% for url in dashboard_urls %}
34 - url: '{{ url }}/api/prometheus_receiver'
35 {% endfor %}
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 %}