Skip to content

Instantly share code, notes, and snippets.

@wjimenez5271
Created May 29, 2014 17:04
Show Gist options
  • Select an option

  • Save wjimenez5271/74df2b16b540a7d9de0c to your computer and use it in GitHub Desktop.

Select an option

Save wjimenez5271/74df2b16b540a7d9de0c to your computer and use it in GitHub Desktop.
haproxy stats parsing
['']
index: 0
pxname,svname,qcur,qmax,scur,smax,slim,stot,bin,bout,dreq,dresp,ereq,econ,eresp,wretr,wredis,status,weight,act,bck,chkfail,chkdown,lastchg,downtime,qlimit,pid,iid,sid,throttle,lbtot,tracked,type,rate,rate_lim,rate_max,check_status,check_code,check_duration,hrsp_1xx,hrsp_2xx,hrsp_3xx,hrsp_4xx,hrsp_5xx,hrsp_other,hanafail,req_rate,req_rate_max,req_tot,cli_abrt,srv_abrt,
['pxname', 'svname', 'qcur', 'qmax', 'scur', 'smax', 'slim', 'stot', 'bin', 'bout', 'dreq', 'dresp', 'ereq', 'econ', 'eresp', 'wretr', 'wredis', 'status', 'weight', 'act', 'bck', 'chkfail', 'chkdown', 'lastchg', 'downtime', 'qlimit', 'pid', 'iid', 'sid', 'throttle', 'lbtot', 'tracked', 'type', 'rate', 'rate_lim', 'rate_max', 'check_status', 'check_code', 'check_duration', 'hrsp_1xx', 'hrsp_2xx', 'hrsp_3xx', 'hrsp_4xx', 'hrsp_5xx', 'hrsp_other', 'hanafail', 'req_rate', 'req_rate_max', 'req_tot', 'cli_abrt', 'srv_abrt', '']
pxname
index: 0
svname
index: 1
qcur
index: 2
qmax
index: 3
scur
index: 4
smax
index: 5
slim
index: 6
stot
index: 7
bin
index: 8
bout
index: 9
dreq
index: 10
dresp
index: 11
ereq
index: 12
econ
index: 13
eresp
index: 14
wretr
index: 15
wredis
index: 16
status
index: 17
weight
index: 18
act
index: 19
bck
index: 20
chkfail
index: 21
chkdown
index: 22
lastchg
index: 23
downtime
index: 24
qlimit
index: 25
pid
index: 26
iid
index: 27
sid
index: 28
throttle
index: 29
lbtot
index: 30
tracked
index: 31
type
index: 32
rate
index: 33
rate_lim
index: 34
rate_max
index: 35
check_status
index: 36
check_code
index: 37
check_duration
index: 38
hrsp_1xx
index: 39
hrsp_2xx
index: 40
hrsp_3xx
index: 41
hrsp_4xx
index: 42
hrsp_5xx
index: 43
hrsp_other
index: 44
hanafail
index: 45
req_rate
index: 46
req_rate_max
index: 47
req_tot
index: 48
cli_abrt
index: 49
srv_abrt
index: 50
index: 51
fe,FRONTEND,,,0,1,2000,45,0,8415,0,0,45,,,,,OPEN,,,,,,,,,1,1,0,,,,0,0,0,1,,,,0,0,0,45,0,0,,0,1,45,,,
['fe', 'FRONTEND', '', '', '0', '1', '2000', '45', '0', '8415', '0', '0', '45', '', '', '', '', 'OPEN', '', '', '', '', '', '', '', '', '1', '1', '0', '', '', '', '0', '0', '0', '1', '', '', '', '0', '0', '0', '45', '0', '0', '', '0', '1', '45', '', '', '']
fe
index: 0
FRONTEND
index: 1
index: 2
index: 2
0
index: 4
1
index: 5
2000
index: 6
45
index: 7
0
index: 4
8415
index: 9
0
index: 4
0
index: 4
45
index: 7
index: 2
index: 2
index: 2
index: 2
OPEN
index: 17
index: 2
index: 2
index: 2
index: 2
index: 2
index: 2
index: 2
index: 2
1
index: 5
1
index: 5
0
index: 4
index: 2
index: 2
index: 2
0
index: 4
0
index: 4
0
index: 4
1
index: 5
index: 2
index: 2
index: 2
0
index: 4
0
index: 4
0
index: 4
45
index: 7
0
index: 4
0
index: 4
index: 2
0
index: 4
1
index: 5
45
index: 7
index: 2
index: 2
index: 2
bend,host1,0,0,0,0,,0,0,0,,0,,0,0,0,0,UP,1,1,0,0,0,113,0,,1,2,1,,0,,2,0,,0,L4OK,,0,0,0,0,0,0,0,0,,,,0,0,
['bend', 'host1', '0', '0', '0', '0', '', '0', '0', '0', '', '0', '', '0', '0', '0', '0', 'UP', '1', '1', '0', '0', '0', '113', '0', '', '1', '2', '1', '', '0', '', '2', '0', '', '0', 'L4OK', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '', '0', '0', '']
bend
index: 0
host1
index: 1
0
index: 2
0
index: 2
0
index: 2
0
index: 2
index: 6
0
index: 2
0
index: 2
0
index: 2
index: 6
0
index: 2
index: 6
0
index: 2
0
index: 2
0
index: 2
0
index: 2
UP
index: 17
1
index: 18
1
index: 18
0
index: 2
0
index: 2
0
index: 2
113
index: 23
0
index: 2
index: 6
1
index: 18
2
index: 27
1
index: 18
index: 6
0
index: 2
index: 6
2
index: 27
0
index: 2
index: 6
0
index: 2
L4OK
index: 36
index: 6
0
index: 2
0
index: 2
0
index: 2
0
index: 2
0
index: 2
0
index: 2
0
index: 2
0
index: 2
index: 6
index: 6
index: 6
0
index: 2
0
index: 2
index: 6
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment