Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

haproxy-stats

0.0.2 • Public • Published

haproxy-stats

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

install

npm i haproxy-stats

Downloadsweekly downloads

15

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability