Fix haproxy plugin to include missing slim metric

This commit is contained in:
Chad Billman 2016-12-07 10:23:31 -05:00
parent 4f6087a99d
commit ecd6404b91
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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 {