Skip to content

Commit

Permalink
Use nanosecond precision in docker_log input (#6663)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1700cfb)
  • Loading branch information
danielnelson committed Nov 18, 2019
1 parent 3d2b7d1 commit 277f0ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/docker_log/docker_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ func (d *DockerLogs) matchedContainerName(names []string) string {

func (d *DockerLogs) Gather(acc telegraf.Accumulator) error {
ctx := context.Background()
acc.SetPrecision(time.Nanosecond)

ctx, cancel := context.WithTimeout(ctx, d.Timeout.Duration)
defer cancel()
Expand Down

0 comments on commit 277f0ba

Please sign in to comment.