From e383472d906f45832c69642376d312ea55f28f24 Mon Sep 17 00:00:00 2001 From: Ward Bekker Date: Tue, 9 Mar 2021 15:32:00 +0100 Subject: [PATCH] Don't auto-include pod labels as loki labels as a sane default (#3390) Don't auto-include pod labels as loki labels as a sane default. Folks regularly run into stream limits when they have a bunch of labels on their pods, so better to remove this to get them a nicer first onboarding experience. --- tools/promtail.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/promtail.sh b/tools/promtail.sh index d8e4c40784276..d7cf36f332a10 100755 --- a/tools/promtail.sh +++ b/tools/promtail.sh @@ -53,8 +53,6 @@ data: source_labels: - __meta_kubernetes_pod_container_name target_label: container_name - - action: labelmap - regex: __meta_kubernetes_pod_label_(.+) - replacement: /var/log/pods/*$1/*.log separator: / source_labels: @@ -100,8 +98,6 @@ data: source_labels: - __meta_kubernetes_pod_container_name target_label: container_name - - action: labelmap - regex: __meta_kubernetes_pod_label_(.+) - replacement: /var/log/pods/*$1/*.log separator: / source_labels: @@ -153,8 +149,6 @@ data: source_labels: - __meta_kubernetes_pod_container_name target_label: container_name - - action: labelmap - regex: __meta_kubernetes_pod_label_(.+) - replacement: /var/log/pods/*$1/*.log separator: / source_labels: @@ -208,8 +202,6 @@ data: source_labels: - __meta_kubernetes_pod_container_name target_label: container_name - - action: labelmap - regex: __meta_kubernetes_pod_label_(.+) - replacement: /var/log/pods/*$1/*.log separator: / source_labels: @@ -256,8 +248,6 @@ data: source_labels: - __meta_kubernetes_pod_container_name target_label: container_name - - action: labelmap - regex: __meta_kubernetes_pod_label_(.+) - replacement: /var/log/pods/*$1/*.log separator: / source_labels: