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