blob: 9bdbbe33db0b1c548c4ae22bfca04b3cfe7287e2 (
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
52
53
54
55
56
57
58
59
60
61
62
|
global:
scrape_interval: 15s
evaluation_interval: 30s
scrape_configs:
- job_name: 'prometheus'
honor_labels: true
static_configs:
- targets: ["localhost:9090"]
labels:
env: prod
- job_name: 'node_exporter'
static_configs:
- targets: ["localhost:9100"]
- job_name: 'zfs_exporter'
metrics_path: /metrics
static_configs:
- targets: ["localhost:9134"]
- job_name: 'blackbox-service-status'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
{% for t in monitoring_apps_confs %}
{% if not t.conf.curl_requires_auth %}
- targets:
{% if "access_domain" in t.conf %}
- 'https://{{ t.conf.access_domain }}{{ t.conf.status_endpoint }}'
{% else %}
- 'http://0.0.0.0:{{ t.conf.port }}{{ t.conf.status_endpoint }}'
{% endif %}
labels:
name: '{{ t.app }}'
{% endif %}
{% endfor %}
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115 # Blackbox exporter.
- job_name: 'blackbox-ssl-sites'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
{% for t in monitoring_static_sites %}
- 'https://{{ t.name }}'
{% endfor %}
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115 # Blackbox exporter.
|