diff --git a/docker-compose.yml b/docker-compose.yml index d04f722..280a981 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: ports: - 9090:9090 links: - - ping:ping + - blackbox:blackbox - speedtest:speedtest networks: - back-tier @@ -44,7 +44,7 @@ services: - back-tier - front-tier - ping: + blackbox: tty: true stdin_open: true expose: diff --git a/prometheus/pinghosts.yaml b/prometheus/blackbox.yaml similarity index 67% rename from prometheus/pinghosts.yaml rename to prometheus/blackbox.yaml index 18f0122..09ac181 100644 --- a/prometheus/pinghosts.yaml +++ b/prometheus/blackbox.yaml @@ -2,4 +2,5 @@ - https://google.com/;Google;external - https://github.com/;GitHub;external - https://ping.archlinux.org/;ArchLinux;external - - https://192.168.0.107/;Proxmox;internal + - 192.168.0.1:1024/;Router;internal + - 192.168.0.107:8006/;Proxmox;internal diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 45a85d8..6a6efec 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -21,14 +21,14 @@ scrape_configs: static_configs: - targets: ['speedtest:9798'] - - job_name: 'ping' + - job_name: 'blackbox' metrics_path: /probe - scrape_interval: 5s # How often should we probe the pinghosts + scrape_interval: 15s # How often should we probe the pinghosts params: module: [http_2xx] # Look for a HTTP 200 response. file_sd_configs: - files: - - pinghosts.yaml + - blackbox.yaml relabel_configs: - source_labels: [__address__] regex: '(.*);(.*);(.*)' # first is the url, thus unique for instance @@ -45,8 +45,4 @@ scrape_configs: - source_labels: [instance] target_label: __param_target - target_label: __address__ - replacement: ping:9115 # The blackbox exporter's real hostname:port. - - - job_name: 'nodeexp' - static_configs: - - targets: ['nodeexp:9100'] + replacement: blackbox:9115 # The blackbox exporter's real hostname:port.