diff --git a/custom/prometheus/prometheus.yml b/custom/prometheus/prometheus.yml index d16e877..65016f8 100644 --- a/custom/prometheus/prometheus.yml +++ b/custom/prometheus/prometheus.yml @@ -28,4 +28,21 @@ scrape_configs: - job_name: node static_configs: - - targets: ['docker.host:9100'] \ No newline at end of file + - 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. \ No newline at end of file diff --git a/docker-compose.utils.yml b/docker-compose.utils.yml index 0f18e0a..9a9592d 100644 --- a/docker-compose.utils.yml +++ b/docker-compose.utils.yml @@ -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