replace smokeping with blackbox

This commit is contained in:
Leon Morten Richter 2023-03-05 15:37:44 +01:00
parent 11b94fe592
commit ee865f5772
No known key found for this signature in database
GPG key ID: DC00D426A10A6E2B
6 changed files with 341 additions and 342 deletions

View file

@ -19,7 +19,7 @@ rule_files:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
- job_name: 'mikrotik'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 15s
@ -32,3 +32,21 @@ scrape_configs:
- 'mikrotik_exporter:9436'
- 'mktxp:49090'
- 'smokeping:9374'
- job_name: 'blackbox'
scrape_interval: 1s
metrics_path: /probe
params:
module: [icmp_ttl5] # use ICMP as the ping protocol
static_configs:
- targets:
- 1.1.1.1
- 8.8.8.8
- 9.9.9.9
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox:9115 # The blackbox exporter's real hostname:port.