From 06e8450694a26b7558dced17b46d5c9528e85726 Mon Sep 17 00:00:00 2001 From: Christopher Hoskin Date: Fri, 6 Jul 2018 13:57:52 +0100 Subject: [PATCH] Allow remote statsd to be specified by environment variable --- libraries/metrics/metrics.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/metrics/metrics.coffee b/libraries/metrics/metrics.coffee index 6d14655e3f..e9a25966b5 100644 --- a/libraries/metrics/metrics.coffee +++ b/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()