Skip to content

Commit

Permalink
Don't auto-include pod labels as loki labels as a sane default (#3390)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wardbekker authored Mar 9, 2021
1 parent 2d07934 commit e383472
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tools/promtail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e383472

Please sign in to comment.