diff --git a/include/haproxy/stats-t.h b/include/haproxy/stats-t.h index 657300851..c5d68ddeb 100644 --- a/include/haproxy/stats-t.h +++ b/include/haproxy/stats-t.h @@ -423,6 +423,9 @@ enum stat_field { ST_F_RT_MAX, ST_F_TT_MAX, ST_F_EINT, + ST_F_IDLE_CONN_CUR, + ST_F_SAFE_CONN_CUR, + ST_F_USED_CONN_CUR, /* must always be the last one */ ST_F_TOTAL_FIELDS diff --git a/src/stats.c b/src/stats.c index 72268742e..351b79fa0 100644 --- a/src/stats.c +++ b/src/stats.c @@ -244,6 +244,9 @@ const struct name_desc stat_fields[ST_F_TOTAL_FIELDS] = { [ST_F_RT_MAX] = { .name = "rtime_max", .desc = "Maximum observed time spent waiting for a server response, in milliseconds (backend/server)" }, [ST_F_TT_MAX] = { .name = "ttime_max", .desc = "Maximum observed total request+response time (request+queue+connect+response+processing), in milliseconds (backend/server)" }, [ST_F_EINT] = { .name = "eint", .desc = "Total number of internal errors since process started"}, + [ST_F_IDLE_CONN_CUR] = { .name = "idle_conn_cur", .desc = "Current number of unsafe idle connections"}, + [ST_F_SAFE_CONN_CUR] = { .name = "safe_conn_cur", .desc = "Current number of safe idle connections"}, + [ST_F_USED_CONN_CUR] = { .name = "used_conn_cur", .desc = "Current number of connections in use"}, }; /* one line of info */ @@ -990,7 +993,10 @@ static int stats_dump_fields_html(struct buffer *out, "
| Current active connections: | %s |
|---|---|
| Current used connections: | %s |
| Current idle connections: | %s |
| - unsafe: | %s |
| - safe: | %s |
| Active connections limit: | %s |
| Idle connections limit: | %s |