Use label federated_instance instead of instance
This commit is contained in:
parent
52f73288b4
commit
958eaa1bcb
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@ scrape_configs:
|
||||||
- job_name: federate
|
- job_name: federate
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
metrics_path: '/federate'
|
metrics_path: '/federate'
|
||||||
|
honor_labels: true
|
||||||
file_sd_configs:
|
file_sd_configs:
|
||||||
- files:
|
- files:
|
||||||
- '/etc/prometheus/targets.json'
|
- '/etc/prometheus/targets.json'
|
||||||
|
@ -39,7 +40,7 @@ scrape_configs:
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
target_label: __param_target
|
target_label: __param_target
|
||||||
- source_labels: [__param_target]
|
- source_labels: [__param_target]
|
||||||
target_label: instance
|
target_label: federated_instance
|
||||||
- source_labels: [__param_target]
|
- source_labels: [__param_target]
|
||||||
target_label: __address__
|
target_label: __address__
|
||||||
replacement: '$1:9090'
|
replacement: '$1:9090'
|
||||||
|
|
Loading…
Reference in a new issue