Skip to content

Commit

Permalink
loki.source.docker: document positions file usage (grafana#4686)
Browse files Browse the repository at this point in the history
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
  • Loading branch information
thampiotr and clayton-cornell committed Aug 3, 2023
1 parent f1e0564 commit 56d3113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/sources/flow/reference/components/loki.source.docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ configuration.
* `loki_source_docker_target_entries_total` (gauge): Total number of successful entries sent to the Docker target.
* `loki_source_docker_target_parsing_errors_total` (gauge): Total number of parsing errors while receiving Docker messages.

## Component behavior
The component uses its data path (a directory named after the domain's
fully qualified name) to store its _positions file_. The positions file
stores the read offsets so that if there is a component or Agent restart,
`loki.source.docker` can pick up tailing from the same spot.

## Example

This example collects log entries from the files specified in the `targets`
Expand Down

0 comments on commit 56d3113

Please sign in to comment.