diff mod_statsd/mod_statsd.lua @ 1447:e96ac4291b36

mod_statsd: Clean off colons (:)
author daurnimator <quae@daurnimator.com>
date Mon, 23 Jun 2014 16:05:33 -0400
parents faf1a5d89cd7
children d722a4defea7
line wrap: on
line diff
--- a/mod_statsd/mod_statsd.lua	Mon Jun 23 20:22:19 2014 +0200
+++ b/mod_statsd/mod_statsd.lua	Mon Jun 23 16:05:33 2014 -0400
@@ -15,7 +15,7 @@
 sock:setpeername(options.hostname or "127.0.0.1", options.port or 8125)
 
 -- Metrics are namespaced by ".", and seperated by newline
-function clean(s) return (s:gsub("[%.\n]", "_")) end
+function clean(s) return (s:gsub("[%.:\n]", "_")) end
 
 -- A 'safer' send function to expose
 function send(s) return sock:send(s) end