config.js
:
(function() {
return {
graphitePort: parseInt(process.env.GRAPHITE_PORT) || 2003,
graphiteHost: process.env.GRAPHITE_HOST || "localhost",
port: parseInt(process.env.STATSD_PORT) || 8125
};
})()
Corra como:
$ GRAPHITE_HOST=somehost statsd config.js