Skip to content

Instantly share code, notes, and snippets.

@hartfordfive
Created April 22, 2016 21:16
Show Gist options
  • Select an option

  • Save hartfordfive/ac96bfabd5f64acf4c0af968c8220557 to your computer and use it in GitHub Desktop.

Select an option

Save hartfordfive/ac96bfabd5f64acf4c0af968c8220557 to your computer and use it in GitHub Desktop.
Get HAProxy stats via socket
echo "show info" | socat unix-connect:[STATS_SOCKET_PATH] stdio
echo "show stat" | socat unix-connect:[STATS_SOCKET_PATH] stdio
echo "show errors" | socat unix-connect:[STATS_SOCKET_PATH] stdio
echo "show sess" | socat unix-connect:[STATS_SOCKET_PATH] stdio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment