diff --git a/include/haproxy/stats-t.h b/include/haproxy/stats-t.h index c5d68ddeb..01c399d88 100644 --- a/include/haproxy/stats-t.h +++ b/include/haproxy/stats-t.h @@ -426,6 +426,7 @@ enum stat_field { ST_F_IDLE_CONN_CUR, ST_F_SAFE_CONN_CUR, ST_F_USED_CONN_CUR, + ST_F_NEED_CONN_EST, /* must always be the last one */ ST_F_TOTAL_FIELDS diff --git a/src/stats.c b/src/stats.c index 351b79fa0..1a453c398 100644 --- a/src/stats.c +++ b/src/stats.c @@ -247,6 +247,7 @@ const struct name_desc stat_fields[ST_F_TOTAL_FIELDS] = { [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"}, + [ST_F_NEED_CONN_EST] = { .name = "need_conn_est", .desc = "Estimated needed number of connections"}, }; /* one line of info */ @@ -997,6 +998,7 @@ static int stats_dump_fields_html(struct buffer *out, "