diff --git a/ansible/roles/prometheus/templates/prometheus.yml b/ansible/roles/prometheus/templates/prometheus.yml index 3e8fa79..e7deb9c 100755 --- a/ansible/roles/prometheus/templates/prometheus.yml +++ b/ansible/roles/prometheus/templates/prometheus.yml @@ -235,7 +235,7 @@ scrape_configs: action: "replace" - source_labels: [__address__] regex: "([0-9\\.]+):([0-9]+)" # : - replacement: "{{clickhouse_proxy_host_dev}}:9200/${1}/metrics" + replacement: "{{clickhouse_proxy_host_dev}}:9200/${1}/${2}/metrics" target_label: "proxy_host" action: "replace" - source_labels: [proxy_host]