1+ ---
12global :
23 scrape_interval : 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
34 evaluation_interval : 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
45
6+ # Also write to Victoriametrics
7+ remote_write :
8+ - url : http://localhost:8428/api/v1/write
9+
510alerting :
611 alertmanagers :
712 - static_configs :
@@ -24,7 +29,7 @@ scrape_configs:
2429 scrape_interval : 5s
2530 scrape_timeout : 5s
2631 static_configs :
27- - targets: ['localhost:9090']
32+ - targets : ['localhost:9090', 'localhost:9115' ]
2833
2934 - job_name : ' pushgateway'
3035 scrape_interval : 30s
@@ -49,7 +54,7 @@ scrape_configs:
4954 - " a36s-cr1.berlin.freifunk.net:9100"
5055 - " a36s-cr2.berlin.freifunk.net:9100"
5156 - " l105-cr1.berlin.freifunk.net:9100"
52- {% for host in groups .all %}
57+ {% for host in groups.all | sort %}
5358 - " {{ host }}:9100"
5459{% endfor %}
5560
@@ -58,3 +63,41 @@ scrape_configs:
5863 scrape_timeout : 30s
5964 static_configs :
6065 - targets : ['127.0.0.1:9111']
66+
67+ - job_name : ' blackbox-ping'
68+ metrics_path : /probe
69+ params :
70+ module : [icmp]
71+ static_configs :
72+ - targets :
73+ # quad9
74+ - 9.9.9.9
75+ - 149.112.112.112
76+ - 2620:fe::fe
77+ - 2620:fe::9
78+ # cloudflare
79+ - 1.1.1.1
80+ - 1.0.0.1
81+ - 2606:4700:4700::1111
82+ - 2606:4700:4700::1001
83+
84+ relabel_configs :
85+ - source_labels : [__address__]
86+ target_label : __param_target
87+ - source_labels : [__param_target]
88+ target_label : instance
89+ - target_label : __address__
90+ replacement : localhost:9115
91+
92+
93+ - job_name : victoriametrics
94+ static_configs :
95+ - targets :
96+ - localhost:8428
97+
98+ - job_name : victorialogs
99+ static_configs :
100+ - targets :
101+ - localhost:9428
102+
103+ # vim: set filetype=yaml:
0 commit comments