Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #65 from johanneswuerbach/disable-hostname
Browse files Browse the repository at this point in the history
Allow to disable hostname
  • Loading branch information
bryanmikaelian authored Mar 2, 2017
2 parents edac968 + 53fc3e6 commit 8994b47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/librato.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8994b47

Please sign in to comment.