Rename ping to blackbox

This commit is contained in:
ItsDrike 2021-07-07 01:03:05 +02:00
parent a3d904bbf0
commit ec3f3217d3
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
3 changed files with 8 additions and 11 deletions

View file

@ -23,7 +23,7 @@ services:
ports: ports:
- 9090:9090 - 9090:9090
links: links:
- ping:ping - blackbox:blackbox
- speedtest:speedtest - speedtest:speedtest
networks: networks:
- back-tier - back-tier
@ -44,7 +44,7 @@ services:
- back-tier - back-tier
- front-tier - front-tier
ping: blackbox:
tty: true tty: true
stdin_open: true stdin_open: true
expose: expose:

View file

@ -2,4 +2,5 @@
- https://google.com/;Google;external - https://google.com/;Google;external
- https://github.com/;GitHub;external - https://github.com/;GitHub;external
- https://ping.archlinux.org/;ArchLinux;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

View file

@ -21,14 +21,14 @@ scrape_configs:
static_configs: static_configs:
- targets: ['speedtest:9798'] - targets: ['speedtest:9798']
- job_name: 'ping' - job_name: 'blackbox'
metrics_path: /probe metrics_path: /probe
scrape_interval: 5s # How often should we probe the pinghosts scrape_interval: 15s # How often should we probe the pinghosts
params: params:
module: [http_2xx] # Look for a HTTP 200 response. module: [http_2xx] # Look for a HTTP 200 response.
file_sd_configs: file_sd_configs:
- files: - files:
- pinghosts.yaml - blackbox.yaml
relabel_configs: relabel_configs:
- source_labels: [__address__] - source_labels: [__address__]
regex: '(.*);(.*);(.*)' # first is the url, thus unique for instance regex: '(.*);(.*);(.*)' # first is the url, thus unique for instance
@ -45,8 +45,4 @@ scrape_configs:
- source_labels: [instance] - source_labels: [instance]
target_label: __param_target target_label: __param_target
- target_label: __address__ - target_label: __address__
replacement: ping:9115 # The blackbox exporter's real hostname:port. replacement: blackbox:9115 # The blackbox exporter's real hostname:port.
- job_name: 'nodeexp'
static_configs:
- targets: ['nodeexp:9100']