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.

View file

@ -85,7 +85,7 @@ services:
- proxy
grafana:
image: grafana/grafana-oss
image: grafana/grafana-oss:latest
environment:
- LETSENCRYPT_HOST=grafana.neo.faulty.nl
- VIRTUAL_HOST=grafana.neo.faulty.nl
@ -106,6 +106,12 @@ services:
extra_hosts:
- "docker.host:host-gateway"
prom-blackbox:
image: prom/blackbox-exporter:latest
networks:
- metrics
## THIS CONTANIER IS AVAILABLE ON THE HOST ##
node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node-exporter