0.5.0 • Published 9 years ago
cnn-metrics v0.5.0
CNN Metrics
Requirements
A current LTS or Stable version of Node.js. We recommend using nvm to manage node versions.
Installation
$ npm installUsage
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.jsEnvironment variables
This package requires a few environment variable to be set.
NODE_ENVENVIRONMENTMETRICS_ENABLEDHOSTEDGRAPHITE_APIKEY-or-DATADOG_APIKEYandDATADOG_APPKEYNODE_APP_INSTANCEMETRICS_INTERVALDEBUGMETRICS