From: William Lallemand Date: Wed, 28 Jul 2021 15:45:18 +0000 (+0200) Subject: MINOR: stats: don't output internal proxies (PR_CAP_INT) X-Git-Tag: v2.5-dev3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7f74623e4fc7d582145b38a60c6911acc7da41d;p=thirdparty%2Fhaproxy.git MINOR: stats: don't output internal proxies (PR_CAP_INT) Disable the output of the statistics of internal proxies (PR_CAP_INT), wo we don't rely only on the px->uuid > 0. This will allow to hide more cleanly the internal proxies in the stats. --- diff --git a/src/stats.c b/src/stats.c index 9891469ea7..71e81c7fa2 100644 --- a/src/stats.c +++ b/src/stats.c @@ -3620,7 +3620,8 @@ static int stats_dump_proxies(struct stream_interface *si, * Also skip disabled proxies unless they are still holding active sessions. * This change allows retrieving stats from "old" proxies after a reload. */ - if ((!px->disabled || px->served > 0) && px->uuid > 0 && (px->cap & (PR_CAP_FE | PR_CAP_BE))) { + if ((!px->disabled || px->served > 0) && px->uuid > 0 && + (px->cap & (PR_CAP_FE | PR_CAP_BE)) && !(px->cap & PR_CAP_INT)) { if (stats_dump_proxy_to_buffer(si, htx, px, uri) == 0) return 0; }