Skip to content

Commit

Permalink
DOCS: clarified globbing behaviour of __path__ of the doublestar libr…
Browse files Browse the repository at this point in the history
…ary (#2437)

* clarified globbing behaviour of __path__ of the doublestar library

* Update docs/sources/clients/promtail/scraping.md

Co-authored-by: Ed Welch <edward.welch@grafana.com>

Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
Co-authored-by: Ed Welch <edward.welch@grafana.com>
  • Loading branch information
3 people authored Jul 28, 2020
1 parent b5f0c75 commit 3f7bc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/clients/promtail/scraping.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f7bc33

Please sign in to comment.