blackbox addition
This commit is contained in:
parent
cce9363964
commit
28b2718359
2 changed files with 25 additions and 2 deletions
|
@ -29,3 +29,20 @@ scrape_configs:
|
||||||
- job_name: node
|
- job_name: node
|
||||||
static_configs:
|
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.
|
|
@ -85,7 +85,7 @@ services:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana-oss
|
image: grafana/grafana-oss:latest
|
||||||
environment:
|
environment:
|
||||||
- LETSENCRYPT_HOST=grafana.neo.faulty.nl
|
- LETSENCRYPT_HOST=grafana.neo.faulty.nl
|
||||||
- VIRTUAL_HOST=grafana.neo.faulty.nl
|
- VIRTUAL_HOST=grafana.neo.faulty.nl
|
||||||
|
@ -106,6 +106,12 @@ services:
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "docker.host:host-gateway"
|
- "docker.host:host-gateway"
|
||||||
|
|
||||||
|
prom-blackbox:
|
||||||
|
image: prom/blackbox-exporter:latest
|
||||||
|
networks:
|
||||||
|
- metrics
|
||||||
|
|
||||||
|
## THIS CONTANIER IS AVAILABLE ON THE HOST ##
|
||||||
node-exporter:
|
node-exporter:
|
||||||
image: quay.io/prometheus/node-exporter:latest
|
image: quay.io/prometheus/node-exporter:latest
|
||||||
container_name: node-exporter
|
container_name: node-exporter
|
||||||
|
|
Reference in a new issue