From 82f746df0882224839ad5f168d6188eafadc6ae2 Mon Sep 17 00:00:00 2001 From: Anthony J Mirabella Date: Fri, 21 Jun 2024 14:36:06 -0400 Subject: [PATCH] fix missing escape of $ on replacement placeholders Signed-off-by: Anthony J Mirabella --- config/eks/prometheus/config-all.yaml | 2 +- config/eks/prometheus/config-haproxy.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/eks/prometheus/config-all.yaml b/config/eks/prometheus/config-all.yaml index 19456129e4..fa3a7c2835 100644 --- a/config/eks/prometheus/config-all.yaml +++ b/config/eks/prometheus/config-all.yaml @@ -56,7 +56,7 @@ receivers: - source_labels: [ __address__ ] action: replace regex: ([^:]+)(?::\d+)? - replacement: ${1}:2020 + replacement: $${1}:2020 target_label: __address__ - action: labelmap regex: __meta_kubernetes_pod_label_(.+) diff --git a/config/eks/prometheus/config-haproxy.yaml b/config/eks/prometheus/config-haproxy.yaml index a420cae849..32a3746db7 100644 --- a/config/eks/prometheus/config-haproxy.yaml +++ b/config/eks/prometheus/config-haproxy.yaml @@ -17,7 +17,7 @@ receivers: - source_labels: [ __address__ ] action: replace regex: ([^:]+)(?::\d+)? - replacement: ${1}:2020 + replacement: $${1}:2020 target_label: __address__ - action: labelmap regex: __meta_kubernetes_pod_label_(.+)