blackbox addition

This commit is contained in:
Didier Slof 2023-01-10 11:09:19 +01:00
parent cce9363964
commit 28b2718359
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 25 additions and 2 deletions

View file

@ -28,4 +28,21 @@ scrape_configs:
- job_name: node
static_configs:
- targets: ['docker.host:9100']
- targets: ['docker.host:9100']
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_2xx] # Look for a HTTP 200 response.
static_configs:
- targets:
- https://faulty.nl
- https://home.famslof.nl
- https://hetzner.de
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: prom-blackbox:9115 # The blackbox exporter's real hostname:port.