Skip to content

Repository files navigation

haproxy-stats

Documentation Status

Haproxy-stats is a small Python library for fetching and parsing realtime stats from HAProxy

Installing

pip install haproxy-stats

Usage

fromhaproxystatsimportHAProxyServerhaproxy=HAProxyServer('127.0.0.1:3212')
forbinhaproxy.backends:
print('%s: %s'% (b.name, b.status))
backend1: UP
backend2: UP
backend3: UP
haproxy.to_json()
{
"127.0.0.1": {
"backends": [
{
"status": "UP",
"lastchg": 497805,
"weight": 0,
"...""listeners": []
}
],
"frontends": []
}
}

full docs available in the docs/ folder

About

haproxy-stats is a small Python library for fetching and parsing stats

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages