0.2.1 • Published 10 years ago

ot-hapi-statsd v0.2.1

Weekly downloads
7
License
ISC
Repository
github
Last release
10 years ago

Hapi Statsd (Plugin)

Hapi.js Plugin for statsd.

This will track your - Count: incoming Request All - Count: incoming Request by path - Timing: response for all paths - Timing: response by path - Count: total response - Count: response by status code - Count: response by url - Count: response by url and status code

STATSD

- For Ex' [GET] /users/all -> Response [200]
- onRequest
    - Count: increment `request.in.users.all.counter'
    - Count: increment `request.in.Total.counter`
- onPreResponse
    - Count increment `response.out.Total.counter`
    - Count increment `response.out.Total.200.counter`
    - Count increment `response.out.users.all.counter`
    - Count increment `response.out.users.all.200.counter`
    - Timer `request.Total.timer`
    - Timer `request.users.all.timer`

Build Status

Quick tour

//SERVER:

server.register([
    register: require('hapi-statsd'),
    options: {
        host: 'statsd.localhost', // your statsd host
        prefix: 'node-app.development.local.', // Prefix
        port: 8125, //must be a number default 8125
        debug: true //could be true/false
        removePath: {
          number: 1, // MUST BE INTEGER
          regex: '/\[[0-9]+\]/' //when to remove part of the path when empty it will on all the routes
        }
    }
])...

Github

Check the GitHub issues.

LICENSE

LICENSE.

0.2.1

10 years ago

0.2.0

10 years ago

0.1.7

10 years ago

0.1.61

10 years ago

0.1.6

10 years ago

0.1.57

10 years ago

0.1.51

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago