Skip to content

Commit

Permalink
Fix haproxy plugin to include missing slim metric
Browse files Browse the repository at this point in the history
  • Loading branch information
cabillman committed Dec 7, 2016
1 parent 4f6087a commit 29014fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/inputs/haproxy/haproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 29014fe

Please sign in to comment.