Sunday, May 27, 2012

Haproxy clear counters all

Nice article: http://www.mgoff.in/2010/07/14/haproxy-gathering-stats-using-socat/
http://code.google.com/p/haproxy-docs/wiki/UnixSocketCommands

haproxy.cfg:

  stats socket /var/haproxy level admin


$ echo "clear counters all" | socat unix-connect:/var/haproxy stdio

1 comment:

  1. Links to articles and code are dead. Would be great if a summary prefaced the commands, instead of just links to other articles. Thanks

    ReplyDelete