0.0.2 • Published 10 years ago

statsd-json-log-backend v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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' ]
}