mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
MINOR: stats: don't hard-code the CSV fields list anymore
Now the list of CSV fields is directly taken from the table.
This commit is contained in:
parent
8e20514283
commit
f614229b31
@ -741,24 +741,13 @@ static int stats_parse_global(char **args, int section_type, struct proxy *curpx
|
|||||||
*/
|
*/
|
||||||
static void stats_dump_csv_header()
|
static void stats_dump_csv_header()
|
||||||
{
|
{
|
||||||
chunk_appendf(&trash,
|
int field;
|
||||||
"# pxname,svname,"
|
|
||||||
"qcur,qmax,"
|
chunk_appendf(&trash, "# ");
|
||||||
"scur,smax,slim,stot,"
|
for (field = 0; field < ST_F_TOTAL_FIELDS; field++)
|
||||||
"bin,bout,"
|
chunk_appendf(&trash, "%s,", stat_field_names[field]);
|
||||||
"dreq,dresp,"
|
|
||||||
"ereq,econ,eresp,"
|
chunk_appendf(&trash, "\n");
|
||||||
"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,"
|
|
||||||
"comp_in,comp_out,comp_byp,comp_rsp,lastsess,last_chk,last_agt,qtime,ctime,rtime,ttime,"
|
|
||||||
"\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print a string of text buffer to <out>. The format is :
|
/* print a string of text buffer to <out>. The format is :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user