Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffyy99 committed Dec 13, 2024
1 parent 5ff970a commit 4308728
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion receiver/dockerstatsreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource usage of cpu, memory, network, and the
## Configuration

The following settings are for both logs and metrics receier:
The following settings are for both logs and metrics receiver:

- `endpoint` (default = `unix:///var/run/docker.sock`): Address to reach the desired Docker daemon.
- `excluded_images` (no default, all running containers monitored): A list of strings,
Expand Down
12 changes: 6 additions & 6 deletions receiver/dockerstatsreceiver/logs_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ func newDockerEventPoller(
}

func (d *dockerEventPoller) Start(ctx context.Context) {
for {
filterArgs := filters.NewArgs()
for k, v := range d.config.Logs.Filters {
for _, elem := range v {
filterArgs.Add(k, elem)
}
filterArgs := filters.NewArgs()
for k, v := range d.config.Logs.Filters {
for _, elem := range v {
filterArgs.Add(k, elem)
}
}
for {
// event stream can be interrupted by async errors (connection or other).
// client caller must retry to restart processing. retry with backoff here
// except for context cancellation.
Expand Down

0 comments on commit 4308728

Please sign in to comment.