From a598cab85e45ccc1169ff9bb6b094cde2ebe5610 Mon Sep 17 00:00:00 2001 From: Nick Turner Date: Wed, 16 Sep 2015 01:11:48 -0700 Subject: [PATCH] Added missing case for haproxy_http_response.5xx statistic --- plugins/haproxy/haproxy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/haproxy/haproxy.go b/plugins/haproxy/haproxy.go index df03ecced..351b4a8e7 100644 --- a/plugins/haproxy/haproxy.go +++ b/plugins/haproxy/haproxy.go @@ -245,6 +245,11 @@ func importCsvResult(r io.Reader, acc plugins.Accumulator, host string) ([][]str if err == nil { acc.Add("http_response.4xx", ival, tags) } + case HF_HRSP_5xx: + ival, err := strconv.ParseUint(v, 10, 64) + if err == nil { + acc.Add("http_response.5xx", ival, tags) + } case HF_EREQ: ival, err := strconv.ParseUint(v, 10, 64) if err == nil {