diff --git a/lib/librato.js b/lib/librato.js index 6db792b..e927b99 100644 --- a/lib/librato.js +++ b/lib/librato.js @@ -635,8 +635,10 @@ exports.init = function librato_init(startup_time, config, events, logger) writeToLegacy = config.librato.writeToLegacy; } - // Set host as a global tag. Defaults to os.hostname() - tags.host = hostName; + // Set host as a global tag. Defaults to os.hostname(). Can be disabled by setting host to false. + if (hostName) { + tags.host = hostName; + } } if (!email || !token) {