Add HTTP 5xx stats to HAProxy plugin. Closes #194
This commit is contained in:
committed by
Cameron Sparr
parent
d979ee5573
commit
211065565f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user