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.
This commit is contained in:
William Lallemand 2021-07-28 17:45:18 +02:00
parent d11c5728b4
commit e7f74623e4

View File

@ -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;
}