mod_statsd/mod_statsd.lua
changeset 2429 26c68a5f432f
parent 1449 d31ace5b1175
child 2879 c3a039972b74
equal deleted inserted replaced
2428:27ffa6521d4e 2429:26c68a5f432f
     5 -- This module is MIT/X11 licensed.
     5 -- This module is MIT/X11 licensed.
     6 
     6 
     7 local socket = require "socket"
     7 local socket = require "socket"
     8 local iterators = require "util.iterators"
     8 local iterators = require "util.iterators"
     9 local jid = require "util.jid"
     9 local jid = require "util.jid"
       
    10 local bare_sessions = prosody.bare_sessions;
    10 
    11 
    11 local options = module:get_option("statsd") or {}
    12 local options = module:get_option("statsd") or {}
    12 
    13 
    13 -- Create UDP socket to statsd server
    14 -- Create UDP socket to statsd server
    14 local sock = socket.udp()
    15 local sock = socket.udp()