amon-client

nodejs amon client, suport for http and zermq transport

npm install amon-client
12 downloads in the last week
20 downloads in the last month

amon-client

nodejs amon client

How to Install

npm install amon-client

How to use

First, require amon-client:

var Amon = require('amon-client');

use zeromq

var amon = new Amon({host:'127.0.0.1', port:5464, protocal: 'zeromq'});

amon.log('this is log transport by zeromq', 'debug');

use http

var amon = new Amon({host:'127.0.0.1', port:2464, protocal: 'http', secret_key:'key in amon.conf'});

amon.log('this is log transport by http', 'debug');
npm loves you