We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ec149 commit dda2067Copy full SHA for dda2067
modules/prometheus.nix
@@ -176,6 +176,11 @@ in
176
genHttpProbeScrapeConfig = { name, opts }: commonProbeScrapeConfig // {
177
job_name = "blackbox_http_${name}";
178
params.module = [ "http_${name}" ];
179
+ relabel_configs = commonProbeScrapeConfig.relabel_configs ++ [ {
180
+ source_labels = [ "__param_target" ];
181
+ regex = "https?://(.*)";
182
+ target_label = "domain";
183
+ } ];
184
static_configs = [ {
185
targets = opts.urls;
186
} ];
@@ -186,6 +191,7 @@ in
191
job_name = "blackbox_dns_${probe.name}_${domain}";
187
192
params.module = [ "dns_${probe.name}_${domain}" ];
188
193
194
+ labels = { inherit domain; };
189
195
inherit (probe.value) targets;
190
196
197
})
0 commit comments