Przeglądaj źródła

Allow remote statsd to be specified by environment variable

Christopher Hoskin 8 lat temu
rodzic
commit
06e8450694
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      libraries/metrics/metrics.coffee

+ 1 - 1
libraries/metrics/metrics.coffee

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