Use label federated_instance instead of instance #28

Merged
jeltz merged 13 commits from fix_exported_prometheus into master 2021-03-06 02:09:25 +01:00
Showing only changes of commit 958eaa1bcb - Show all commits

View file

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