Explorar o código

Allow remote statsd to be specified by environment variable

Christopher Hoskin %!s(int64=8) %!d(string=hai) anos
pai
achega
06e8450694
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libraries/metrics/metrics.coffee

+ 1 - 1
libraries/metrics/metrics.coffee

@@ -1,5 +1,5 @@
 StatsD = require('lynx')
-statsd = new StatsD('localhost', 8125, {on_error:->})
+statsd = new StatsD(process.env["STATSD_HOST"] or "localhost", 8125, {on_error:->})
 
 name = "unknown"
 hostname = require('os').hostname()