changeset 2879 | c3a039972b74 |
parent 2429 | 26c68a5f432f |
--- a/mod_statsd/mod_statsd.lua Sun Feb 04 16:00:51 2018 +0100 +++ b/mod_statsd/mod_statsd.lua Sun Feb 04 16:01:37 2018 +0100 @@ -15,7 +15,7 @@ local sock = socket.udp() sock:setpeername(options.hostname or "127.0.0.1", options.port or 8125) --- Metrics are namespaced by ".", and seperated by newline +-- Metrics are namespaced by ".", and separated by newline function clean(s) return (s:gsub("[%.:\n]", "_")) end -- A 'safer' send function to expose