Skip to content

akyuujs/akyuu-adapter-statsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akyuu-adapter-statsd

StatsD adapter for Akyuujs.

Installation

$ npm install --save -d akyuu-adapter-statsd

Configuration

Make sure you have a connections section in your configuration file(s).
And its adapter should be statsd.

option required remark
adapter must be statsd
host default 127.0.0.1
port default 8125
... docs

Usage

Config File

// ${project}/config/default/connections.js

'use strict'

module.exports = {
    myStatsd: {
        adapter: 'statsd',
        host: '127.0.0.1',
        port: 8125
    }
}

Usage File

// ${project}/${some}.js

'use strict'

const akyuu = require('akyuu');
const myStatsd = akyuu.config.connection.get('myStatsd');

myStatsd.socket.on('error', function(error) {
    console.log(error);
});


statsd.increment('some_key');
statsd.timing('some_key', 100);

About

Akyuu StatsD adapter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published