npm.io
0.0.2 • Published 12 years ago

statsd-json-log-backend

Licence
MIT
Version
0.0.2
Deps
0
Vulns
0
Weekly
0

StatsD backend to flush stats to JSON file

Overview

This is a pluggable backend for StatsD to flush stats into a Logstash compatible JSON file.

Requirements
  • statsd versions >= 0.4.0.
Installation
$ cd /path/to/statsd
$ npm install statsd-json-log-backend
Configuration and Enabling

Add json_log configuration block and statsd-json-log-backend to the backends list in StatsD configuration file.

{
  json_log: {
    application: 'application_name', // prefix to all the metric names in output [string, default: OS hostname]
    logfile: 'path-to-output-file'   // file to write the output to [string, default './statsd-log.json' ]
  },
  backends: [ 'statsd-json-log-backend' ]
}

Keywords