Mercurial > prosody-modules
comparison mod_statistics_statsman/mod_statistics_statsman.lua @ 3607:3a06b0b6ba67
mod_statistics_statsman: Update for change stats type change in mod_measure_memory
See a5a5f85d7ca1
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 28 May 2019 21:15:09 +0200 |
parents | c7773ea263d0 |
children | 0d4598dacc87 |
comparison
equal
deleted
inserted
replaced
3606:7811ba467525 | 3607: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) |