From 62d91635b2dbea5551c110d665afc07d5c019d09 Mon Sep 17 00:00:00 2001
From: Xiang Dai <764524258@qq.com>
Date: Wed, 10 Apr 2019 15:08:36 +0800
Subject: [PATCH] Add help info for users uses high k8s version

Signed-off-by: Xiang Dai <764524258@qq.com>
---
 docs/troubleshooting.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
index 04d5fd48..7b9e3716 100644
--- a/docs/troubleshooting.md
+++ b/docs/troubleshooting.md
@@ -14,6 +14,22 @@ This can have several reasons:
   - Detect this by turning on debug logging and then look for `dropping target, no labels` or `ignoring target` messages.
 - Promtail cannot find the location of your log files. Check that the scrape_configs contains valid path setting for finding the logs in your worker nodes.
 - Your pods are running but not with the labels Promtail is expecting. Check the Promtail scape_configs.
+- Now default scape_configs not work for kubernetes 1.14 and above, if you use 1.14 or above version, need update scape_config from
+```
+        - replacement: /var/log/pods/$1/*.log
+          separator: /
+          source_labels:
+          - __meta_kubernetes_pod_uid
+          - __meta_kubernetes_pod_container_name
+          target_label: __path__
+```
+to
+```
+        - replacement: /var/log/pods/*$1*/*/*.log
+          source_labels:
+          - __meta_kubernetes_pod_uid
+          target_label: __path__
+```
 
 ## Debug output
 
-- 
GitLab