Fix haproxy plugin to include missing slim metric
This commit is contained in:
parent
4f6087a99d
commit
ecd6404b91
|
@ -13,6 +13,7 @@
|
||||||
- [#1348](https://github.com/influxdata/telegraf/issues/1348): Telegraf "internal" plugin for collecting stats on itself.
|
- [#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.
|
- [#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.
|
- [#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
|
### Bugfixes
|
||||||
|
|
||||||
|
|
|
@ -258,6 +258,11 @@ func importCsvResult(r io.Reader, acc telegraf.Accumulator, host string) error {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
fields["scur"] = ival
|
fields["scur"] = ival
|
||||||
}
|
}
|
||||||
|
case HF_SLIM:
|
||||||
|
ival, err := strconv.ParseUint(v, 10, 64)
|
||||||
|
if err == nil {
|
||||||
|
fields["slim"] = ival
|
||||||
|
}
|
||||||
case HF_SMAX:
|
case HF_SMAX:
|
||||||
ival, err := strconv.ParseUint(v, 10, 64)
|
ival, err := strconv.ParseUint(v, 10, 64)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|
Loading…
Reference in New Issue