mod_statistics_statsman/mod_statistics_statsman.lua
changeset 3611 3a06b0b6ba67
parent 3174 c7773ea263d0
child 3613 0d4598dacc87
equal deleted inserted replaced
3610:7811ba467525 3611:3a06b0b6ba67
    14 local sessions = {};
    14 local sessions = {};
    15 
    15 
    16 local name_map = {
    16 local name_map = {
    17 	["start_time"] = "up_since";
    17 	["start_time"] = "up_since";
    18 	["cpu.percent:amount"] = "cpu";
    18 	["cpu.percent:amount"] = "cpu";
    19 	["memory.allocated_mmap:size"] = "memory_allocated_mmap";
    19 	["memory.allocated_mmap:amount"] = "memory_allocated_mmap";
    20 	["memory.allocated:size"] = "memory_allocated";
    20 	["memory.allocated:amount"] = "memory_allocated";
    21 	["memory.lua:size"] = "memory_lua";
    21 	["memory.lua:amount"] = "memory_lua";
    22 	["memory.returnable:size"] = "memory_returnable";
    22 	["memory.returnable:amount"] = "memory_returnable";
    23 	["memory.rss:size"] = "memory_rss";
    23 	["memory.rss:amount"] = "memory_rss";
    24 	["memory.total:size"] = "memory_total";
    24 	["memory.total:amount"] = "memory_total";
    25 	["memory.unused:size"] = "memory_unused";
    25 	["memory.unused:amount"] = "memory_unused";
    26 	["memory.used:size"] = "memory_used";
    26 	["memory.used:amount"] = "memory_used";
    27 	["/*/mod_c2s/connections:amount"] = "total_c2s";
    27 	["/*/mod_c2s/connections:amount"] = "total_c2s";
    28 	["/*/mod_s2s/connections:amount"] = "total_s2s";
    28 	["/*/mod_s2s/connections:amount"] = "total_s2s";
    29 };
    29 };
    30 
    30 
    31 local function push_stat(conn, name, value)
    31 local function push_stat(conn, name, value)