Added missing case for haproxy_http_response.5xx statistic

This commit is contained in:
Nick Turner 2015-09-16 01:11:48 -07:00
parent bd00f46d8b
commit a598cab85e
1 changed files with 5 additions and 0 deletions

View File

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