From c5528035b5158c5fdcf3b82a2bdba0b398e41f5b Mon Sep 17 00:00:00 2001 From: Greg Linton Date: Thu, 22 Dec 2016 14:45:35 -0500 Subject: [PATCH] Removed 'last_agt' and 'lastchg' because they're not usable metrics. --- plugins/inputs/haproxy/haproxy.go | 5 +++-- plugins/inputs/haproxy/haproxy_test.go | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/haproxy/haproxy.go b/plugins/inputs/haproxy/haproxy.go index 8aa4a1f21..99c665853 100644 --- a/plugins/inputs/haproxy/haproxy.go +++ b/plugins/inputs/haproxy/haproxy.go @@ -176,11 +176,12 @@ func importCsvResult(r io.Reader, acc telegraf.Accumulator, host string) error { "status": true, "tracked": true, "check_status": true, - "last_chk": true, + "lastchg": true, "pid": true, "iid": true, "sid": true, - "lastchg": true, + "last_chk": true, + "last_agt": true, "check_code": true, "agent_status": true, "agent_code": true, diff --git a/plugins/inputs/haproxy/haproxy_test.go b/plugins/inputs/haproxy/haproxy_test.go index f6f5f740a..31ce342d9 100644 --- a/plugins/inputs/haproxy/haproxy_test.go +++ b/plugins/inputs/haproxy/haproxy_test.go @@ -191,7 +191,6 @@ func HaproxyGetFieldValues() map[string]interface{} { "bck": uint64(0), "chkfail": uint64(1), "chkdown": uint64(0), - "lastchg": uint64(70698), "downtime": uint64(0), "lbtot": uint64(171013), "type": uint64(2), @@ -208,7 +207,6 @@ func HaproxyGetFieldValues() map[string]interface{} { "cli_abrt": uint64(73), "srv_abrt": uint64(1), "lastsess": uint64(0), - "last_agt": uint64(0), "qtime": uint64(0), "ctime": uint64(2), "rtime": uint64(312),