Skip to content

Commit

Permalink
Update relabeling to send port in path
Browse files Browse the repository at this point in the history
  • Loading branch information
LDiazN committed Feb 14, 2025
1 parent 91f52da commit c23640e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/prometheus/templates/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ scrape_configs:
action: "replace"
- source_labels: [__address__]
regex: "([0-9\\.]+):([0-9]+)" # <ip>:<port>
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]
Expand Down

0 comments on commit c23640e

Please sign in to comment.