From 3f7bc33aaa67d157c17d1da232a8bbe055272427 Mon Sep 17 00:00:00 2001 From: Ward Bekker Date: Tue, 28 Jul 2020 22:38:09 +0200 Subject: [PATCH] DOCS: clarified globbing behaviour of __path__ of the doublestar library (#2437) * clarified globbing behaviour of __path__ of the doublestar library * Update docs/sources/clients/promtail/scraping.md Co-authored-by: Ed Welch Co-authored-by: Owen Diehl Co-authored-by: Ed Welch --- docs/sources/clients/promtail/scraping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/clients/promtail/scraping.md b/docs/sources/clients/promtail/scraping.md index 40c444982b244..010dd1bd1826a 100644 --- a/docs/sources/clients/promtail/scraping.md +++ b/docs/sources/clients/promtail/scraping.md @@ -51,7 +51,7 @@ There are different types of labels present in Promtail: for the full list of Kubernetes meta labels. * The `__path__` label is a special label which Promtail uses after discovery to - figure out where the file to read is located. Wildcards are allowed. + figure out where the file to read is located. Wildcards are allowed, for example `/var/log/*.log` to get all files with a `log` extension in the specified directory, and `/var/log/**/*.log` for matching files and directories recursively. For a full list of options check out the [docs for the library promtail uses.](https://github.com/bmatcuk/doublestar) * The label `filename` is added for every file found in `__path__` to ensure the uniqueness of the streams. It is set to the absolute path of the file the line