Skip to content

Get HAProxy statistics in JSON format via HTTP request.

License

Notifications You must be signed in to change notification settings

sohje/haproxy-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haproxy-stats

npm version Build Status

Get HAProxy statistics in JSON format via HTTP request.
Check docs for more info.

Install

$ npm install --save haproxy-stats

Usage

var haStats = require('haproxy-stats');
haStats('http://localhost:1337/stats;csv;norefresh', function(err, data) {
    console.log(data)
    // => { 'ws': {'ws1': {qcur: 12, qmax: 0, scur: 355 ...}, 'ws2': {qcur: 0, qmax: 0, scur: 301 ...} } }
})

License

MIT © Nikolay Spiridonov

About

Get HAProxy statistics in JSON format via HTTP request.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages