Explorar o código

Merge pull request #10 from sharelatex/csh-remote-statsd-sharelatex

Release v1.8.1
Christopher Hoskin %!s(int64=8) %!d(string=hai) anos
pai
achega
31e97f92d5
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      libraries/metrics/metrics.coffee
  2. 1 1
      libraries/metrics/package.json

+ 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()

+ 1 - 1
libraries/metrics/package.json

@@ -1,6 +1,6 @@
 {
   "name": "metrics-sharelatex",
-  "version": "1.8.0",
+  "version": "1.8.1",
   "description": "A drop-in metrics and monitoring module for node.js apps",
   "repository": {
     "type": "git",