0.1.18 • Published 5 years ago

write-events-to-log v0.1.18

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

StatsD backend for Dumping Events data to File System

Overview

StatsD is a smart Node.js package that collects and aggregates statistics from differents apps sent over the UDP protocol. At a set time interval it forwards the aggregated data to a configured backend. It is pluggable with several backends available, the most popular being Graphite, a python/django monitoring tool.

With write-events-to-log you can dump data to the local file sytem for the Events API designed internally.

Counters, timers, gauges and sets are all supported.

LOcal code stored in https://gitlab.devtools.intel.com/sports/tee-control/write-events-to-log

Installation

You need node.js installed on your system aswell as StatsD. Follow the instructions on their sites or see this blog post/tutorial on how to install these components on a Windows system.

The CloudWatch backend is an npm package that can be installed with the npm command which comes with your installation of node.js. Go to the npm site for more information.

npm install write-events-to-log

The package has two depdencies that should be installed automatically, fs.

Configuration

The StatsD and its backends are configured in a json object placed in a file supplied to StatsD at the command line. For example, start StatsD with the following.

node ./stats.js ./myConfig.js

The following demonstrates the minimum config for the CloudWatch backend.

{
    backends: [ "write-events-to-log" ],
    writeevents: 
    {
        fileDir: /tmp/writeEvents,
        watchKeys: ["AggregatedMetrics."]   
    }
}

The metric name, unit and value depends on what you send StatsD with your UDP request. For example, given

gorets:1|c

the Unit will be Counter, the metric name gorets. The value will be the aggregated count as calculated by StatsD.

ms corresponds the unit Milliseconds. s and g to None*.

Additional configuration options

Whitelisting Metrics

Using AWS Roles to obtain credentials

Multi-region support

Tutorial

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago