Use label federated_instance instead of instance
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
jeltz 2021-03-05 00:54:44 +01:00
parent 52f73288b4
commit 958eaa1bcb

View file

@ -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'