add additional stats that were already being collected
and rearrange the order to match the index order from the CSV endpoint add test coverage. add back wretr. remove check_status from recently added column closes #445
This commit is contained in:
committed by
Cameron Sparr
parent
97ebcc2af1
commit
34f0c593ad
@@ -53,31 +53,41 @@ func TestHaproxyGeneratesMetricsWithAuthentication(t *testing.T) {
|
||||
name string
|
||||
value uint64
|
||||
}{
|
||||
{"bin", 5557055817},
|
||||
{"scur", 288},
|
||||
|
||||
{"qmax", 81},
|
||||
{"scur", 288},
|
||||
{"smax", 713},
|
||||
{"bin", 5557055817},
|
||||
{"bout", 24096715169},
|
||||
{"dreq", 1102},
|
||||
{"dresp", 80},
|
||||
{"ereq", 95740},
|
||||
{"econ", 0},
|
||||
{"eresp", 0},
|
||||
{"wretr", 17},
|
||||
{"wredis", 19},
|
||||
{"active_servers", 1},
|
||||
{"backup_servers", 0},
|
||||
{"downtime", 0},
|
||||
{"throttle", 13},
|
||||
{"lbtot", 114},
|
||||
{"rate", 18},
|
||||
{"rate_max", 102},
|
||||
{"check_duration", 1},
|
||||
{"http_response.1xx", 0},
|
||||
{"http_response.2xx", 1314093},
|
||||
{"http_response.3xx", 537036},
|
||||
{"http_response.4xx", 123452},
|
||||
{"http_response.5xx", 11966},
|
||||
{"dreq", 1102},
|
||||
{"dresp", 80},
|
||||
{"wretr", 17},
|
||||
{"wredis", 19},
|
||||
{"ereq", 95740},
|
||||
{"econ", 0},
|
||||
{"eresp", 0},
|
||||
{"req_rate", 35},
|
||||
{"req_rate_max", 140},
|
||||
{"req_tot", 1987928},
|
||||
{"bin", 5557055817},
|
||||
{"bout", 24096715169},
|
||||
{"rate", 18},
|
||||
{"rate_max", 102},
|
||||
|
||||
{"throttle", 13},
|
||||
{"lbtot", 114},
|
||||
{"cli_abort", 0},
|
||||
{"srv_abort", 0},
|
||||
{"qtime", 0},
|
||||
{"ctime", 2},
|
||||
{"rtime", 23},
|
||||
{"ttime", 545},
|
||||
}
|
||||
|
||||
for _, c := range checkInt {
|
||||
|
||||
Reference in New Issue
Block a user