Skip to content

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

License

Notifications You must be signed in to change notification settings

itskannanraj/haproxy-stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

from haproxystats import HAProxyServer

haproxy = HAProxyServer('127.0.0.1:3212')

for b in haproxy.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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%