diff --git a/CHANGELOG.md b/CHANGELOG.md index 42847fd2b..2fb813f0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - [#1348](https://github.com/influxdata/telegraf/issues/1348): Telegraf "internal" plugin for collecting stats on itself. - [#2127](https://github.com/influxdata/telegraf/pull/2127): Update Go version to 1.7.4. - [#2126](https://github.com/influxdata/telegraf/pull/2126): Support a metric.Split function. +- [#2132](https://github.com/influxdata/telegraf/issues/2132): Add missing slim metric to haproxy plugin ### Bugfixes diff --git a/plugins/inputs/haproxy/haproxy.go b/plugins/inputs/haproxy/haproxy.go index 6b42a0705..9c6c06d03 100644 --- a/plugins/inputs/haproxy/haproxy.go +++ b/plugins/inputs/haproxy/haproxy.go @@ -258,6 +258,11 @@ func importCsvResult(r io.Reader, acc telegraf.Accumulator, host string) error { if err == nil { fields["scur"] = ival } + case HF_SLIM: + ival, err := strconv.ParseUint(v, 10, 64) + if err == nil { + fields["slim"] = ival + } case HF_SMAX: ival, err := strconv.ParseUint(v, 10, 64) if err == nil {