mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-11 16:29:36 +00:00
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:
parent
d11c5728b4
commit
e7f74623e4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user