Reference

clear counters all

Clear all counters on the Stats page.

Description Jump to heading

On the Stats page, some counters accumulate over time, while others record the peak that a counter has reached. Use clear counters all to reset all counters to zero. The result is the same as restarting the load balancer, which also resets these values.

Examples Jump to heading

This resets all counters to zero:

bash
echo "clear counters all" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999
bash
echo "clear counters all" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999

See also Jump to heading

If this page was useful, please, Leave the feedback.

© 2023 HAProxy Technologies, LLC. All Rights Reserved
Manage Cookie Preferences