blob: de993cb6ce369be9f6043098069af08b5cff6be0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# {{ cephadm_managed }}
# See https://prometheus.io/docs/alerting/configuration/ for documentation.
global:
resolve_timeout: 5m
{% if not secure %}
http_config:
tls_config:
{% if security_enabled %}
ca_file: root_cert.pem
{% else %}
insecure_skip_verify: true
{% endif %}
{% endif %}
route:
receiver: 'default'
routes:
- group_by: ['alertname']
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'ceph-dashboard'
{% if snmp_gateway_urls %}
continue: true
- receiver: 'snmp-gateway'
repeat_interval: 1h
group_interval: 10s
group_by: ['alertname']
match_re:
oid: "(1.3.6.1.4.1.50495.).*"
{% endif %}
receivers:
- name: 'default'
webhook_configs:
{% for url in default_webhook_urls %}
- url: '{{ url }}'
{% endfor %}
- name: 'ceph-dashboard'
webhook_configs:
{% for url in dashboard_urls %}
- url: '{{ url }}/api/prometheus_receiver'
{% endfor %}
{% if snmp_gateway_urls %}
- name: 'snmp-gateway'
webhook_configs:
{% for url in snmp_gateway_urls %}
- url: '{{ url }}'
{% endfor %}
{% endif %}
|