Skip to content

Commit

Permalink
Update config for newer kubernetes clusters (grafana#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
  • Loading branch information
gouthamve authored and tomwilkie committed Dec 10, 2018
1 parent 91f41f3 commit 8c236f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/promtail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ data:
source_labels:
- __meta_kubernetes_pod_name
target_label: instance
- replacement: /var/log/pods/$1/
- replacement: /var/log/pods/$1
separator: /
source_labels:
- __meta_kubernetes_pod_uid
- __meta_kubernetes_pod_container_name
target_label: __path__
- job_name: kubernetes-pods-app
kubernetes_sd_configs:
Expand Down Expand Up @@ -73,9 +75,11 @@ data:
target_label: instance
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- replacement: /var/log/pods/$1/
- replacement: /var/log/pods/$1
separator: /
source_labels:
- __meta_kubernetes_pod_uid
- __meta_kubernetes_pod_container_name
target_label: __path__
kind: ConfigMap
metadata:
Expand Down

0 comments on commit 8c236f1

Please sign in to comment.