Skip to content

cnnlabs/cnn-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ae37af6 · Apr 20, 2017

History

51 Commits
Mar 31, 2017
Mar 31, 2017
Feb 17, 2016
Feb 17, 2016
Feb 17, 2016
Feb 17, 2016
Feb 17, 2016
Feb 23, 2016
Mar 31, 2017
Feb 17, 2016
Feb 17, 2016
Feb 23, 2016
Apr 20, 2017
Apr 20, 2017
Feb 17, 2016
Feb 17, 2016
Feb 17, 2016
Apr 14, 2017
Mar 31, 2017

Repository files navigation

CNN Metrics

build node npm npm-downloads dependency-status

Requirements

A current LTS or Stable version of Node.js. We recommend using nvm to manage node versions.

Installation

$ npm install

Usage

See the example/ directory. You can start up the example app with the following. Supply your own Hosted Graphite key or DataDog keys.

$ NODE_ENV=production ENABLE_MTERICS=true HOSTEDGRAPHITE_APIKEY=[valid-key] DEBUG=* DEBUGMETRICS=1 PORT=5000 node example/app.js

Environment variables

This package requires a few environment variable to be set.

  • NODE_ENV

  • ENVIRONMENT

  • METRICS_ENABLED

  • HOSTEDGRAPHITE_APIKEY -or- DATADOG_APIKEY and DATADOG_APPKEY

  • NODE_APP_INSTANCE

  • METRICS_INTERVAL

  • DEBUGMETRICS