From 8147d609730c0265be477c79d077e8ea05bc956b Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 19 Feb 2018 20:54:02 -0800 Subject: [PATCH] Fix metric buffer limit in internal plugin after reload --- CHANGELOG.md | 1 + internal/models/running_output.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c42e1c5d3..f0f2b2027 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ ### Bugfixes - [#1896](https://github.com/influxdata/telegraf/issues/1896): Fix various mysql data type conversions. +- [#3810](https://github.com/influxdata/telegraf/issues/3810): Fix metric buffer limit in internal plugin after reload. ## v1.5.3 [unreleased] diff --git a/internal/models/running_output.go b/internal/models/running_output.go index 335fb792f..713c28cce 100644 --- a/internal/models/running_output.go +++ b/internal/models/running_output.go @@ -87,7 +87,7 @@ func NewRunningOutput( map[string]string{"output": name}, ), } - ro.BufferLimit.Incr(int64(ro.MetricBufferLimit)) + ro.BufferLimit.Set(int64(ro.MetricBufferLimit)) return ro }