Added lastsess, and fixed weight.

This commit is contained in:
Greg Linton 2016-05-11 08:28:00 -04:00
parent ccb521b422
commit 61be28a106
1 changed files with 6 additions and 3 deletions

View File

@ -93,6 +93,7 @@ func TestHaproxyGeneratesMetricsWithAuthentication(t *testing.T) {
"hrsp_4xx": uint64(2345),
"hrsp_5xx": uint64(1056),
"hrsp_other": uint64(0),
"lastsess": uint64(0),
"lbtot": uint64(171013),
"qcur": uint64(0),
"qmax": uint64(0),
@ -105,7 +106,7 @@ func TestHaproxyGeneratesMetricsWithAuthentication(t *testing.T) {
"srv_abrt": uint64(1),
"stot": uint64(171014),
"ttime": uint64(2341),
"weight": uint(100),
"weight": uint64(100),
"wredis": uint64(0),
"wretr": uint64(1),
}
@ -162,6 +163,7 @@ func TestHaproxyGeneratesMetricsWithoutAuthentication(t *testing.T) {
"hrsp_4xx": uint64(2345),
"hrsp_5xx": uint64(1056),
"hrsp_other": uint64(0),
"lastsess": uint64(0),
"lbtot": uint64(171013),
"qcur": uint64(0),
"qmax": uint64(0),
@ -174,7 +176,7 @@ func TestHaproxyGeneratesMetricsWithoutAuthentication(t *testing.T) {
"srv_abrt": uint64(1),
"stot": uint64(171014),
"ttime": uint64(2341),
"weight": uint(100),
"weight": uint64(100),
"wredis": uint64(0),
"wretr": uint64(1),
}
@ -230,6 +232,7 @@ func TestHaproxyGeneratesMetricsUsingSocket(t *testing.T) {
"hrsp_4xx": uint64(2345),
"hrsp_5xx": uint64(1056),
"hrsp_other": uint64(0),
"lastsess": uint64(0),
"lbtot": uint64(171013),
"qcur": uint64(0),
"qmax": uint64(0),
@ -242,7 +245,7 @@ func TestHaproxyGeneratesMetricsUsingSocket(t *testing.T) {
"srv_abrt": uint64(1),
"stot": uint64(171014),
"ttime": uint64(2341),
"weight": uint(100),
"weight": uint64(100),
"wredis": uint64(0),
"wretr": uint64(1),
}