|
|
@ -45,7 +45,7 @@ scrape_configs:
|
|
|
|
- job_name: node
|
|
|
|
- job_name: node
|
|
|
|
file_sd_configs:
|
|
|
|
file_sd_configs:
|
|
|
|
- files:
|
|
|
|
- files:
|
|
|
|
- '/etc/prometheus/node-targets.json'
|
|
|
|
- '/etc/prometheus/targets/node-targets.json'
|
|
|
|
relabel_configs:
|
|
|
|
relabel_configs:
|
|
|
|
# Use hostnames instead of ip for the instance label
|
|
|
|
# Use hostnames instead of ip for the instance label
|
|
|
|
- source_labels: [__address__]
|
|
|
|
- source_labels: [__address__]
|
|
|
@ -71,7 +71,7 @@ scrape_configs:
|
|
|
|
module: [http_2xx]
|
|
|
|
module: [http_2xx]
|
|
|
|
file_sd_configs:
|
|
|
|
file_sd_configs:
|
|
|
|
- files:
|
|
|
|
- files:
|
|
|
|
- '/etc/prometheus/blackbox-{{ target_type }}-targets.json'
|
|
|
|
- '/etc/prometheus/targets/blackbox-{{ target_type }}-targets.json'
|
|
|
|
relabel_configs:
|
|
|
|
relabel_configs:
|
|
|
|
- source_labels: [__address__]
|
|
|
|
- source_labels: [__address__]
|
|
|
|
target_label: __param_target
|
|
|
|
target_label: __param_target
|
|
|
|