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

Commit

Permalink
Allow to disable sending a host tag
Browse files Browse the repository at this point in the history
This allows to disable sending a host tag by setting the host to false.
  • Loading branch information
johanneswuerbach committed Mar 2, 2017
1 parent edac968 commit 53fc3e6
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 53fc3e6

Please sign in to comment.