# HG changeset patch # User daurnimator # Date 1403553954 14400 # Node ID d722a4defea7da2a418c2eca12ebe644437e3415 # Parent e96ac4291b363765d83ae9131f9dad4c122cc8eb mod_statsd: Optionally include host in prefix diff -r e96ac4291b36 -r d722a4defea7 mod_statsd/mod_statsd.lua --- a/mod_statsd/mod_statsd.lua Mon Jun 23 16:05:33 2014 -0400 +++ b/mod_statsd/mod_statsd.lua Mon Jun 23 16:05:54 2014 -0400 @@ -21,7 +21,10 @@ function send(s) return sock:send(s) end -- prefix should end in "." -local prefix = (options.prefix or ("prosody." .. clean(module.host))) .. "." +local prefix = (options.prefix or "prosody") .. "." +if not options.no_host then + prefix = prefix .. clean(module.host) .. "." +end -- Track users as they bind/unbind -- count bare sessions every time, as we have no way to tell if it's a new bare session or not