From e0095d9c6b8b501f382f4515829eb0f5d4233c89 Mon Sep 17 00:00:00 2001 From: DylanGuedes Date: Wed, 21 Feb 2024 15:42:38 -0300 Subject: [PATCH] Undo pod-logs change --- .../helm/loki/templates/monitoring/pod-logs.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/production/helm/loki/templates/monitoring/pod-logs.yaml b/production/helm/loki/templates/monitoring/pod-logs.yaml index c0b5b08023f46..4445f3e760779 100644 --- a/production/helm/loki/templates/monitoring/pod-logs.yaml +++ b/production/helm/loki/templates/monitoring/pod-logs.yaml @@ -25,17 +25,18 @@ spec: - action: labelmap regex: __meta_kubernetes_pod_label_(.+) - action: replace - regex: "(.*)" - replacement: "($1)" + replacement: "$1" + separator: "-" sourceLabels: - - __meta_kubernetes_namespace - targetLabel: __job_namespace__ + - __meta_kubernetes_pod_label_app_kubernetes_io_name + - __meta_kubernetes_pod_label_app_kubernetes_io_component + targetLabel: __service__ - action: replace replacement: "$1" separator: "/" sourceLabels: - - __job_namespace__ - - __meta_kubernetes_pod_label_app_kubernetes_io_component + - __meta_kubernetes_namespace + - __service__ targetLabel: job - action: replace sourceLabels: