Configure Statsd with environment variables
config.js
:
(function() {
return {
graphitePort: parseInt(process.env.GRAPHITE_PORT) || 2003,
graphiteHost: process.env.GRAPHITE_HOST || "localhost",
port: parseInt(process.env.STATSD_PORT) || 8125
};
})()
Run like:
$ GRAPHITE_HOST=somehost statsd config.js
Written by Simon Pantzare
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Environment
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#