aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-04 22:11:14 +0100
committerKim Alvefur <zash@zash.se>2022-02-04 22:11:14 +0100
commita3a343b20ebf388581f61e207c424f96d785c5e5 (patch)
treeaa0164f762583c26b432e873c1ddac89bb336bf5 /plugins
parente6f20da22f14214d569b1a5e92d54a1d3f530ff9 (diff)
downloadprosody-a3a343b20ebf388581f61e207c424f96d785c5e5.tar.gz
prosody-a3a343b20ebf388581f61e207c424f96d785c5e5.zip
mod_smacks: Tweak resumption age buckets towards multiples of 60
This seems like the thing to do for time, which is usually divided into divisors divisible by 60, or multiplied by multiples of 60
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_smacks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 0215a604..ce59248e 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -38,7 +38,7 @@ local resumption_age = module:metric(
"histogram",
"resumption_age", "seconds", "time the session had been hibernating at the time of a resumption",
{},
- {buckets = { 0, 1, 2, 5, 10, 20, 50, 100, 200, 500 }}
+ {buckets = { 0, 1, 2, 5, 10, 30, 60, 120, 300, 600 }}
):with_labels();
local sessions_expired = module:measure("sessions_expired", "counter");
local sessions_started = module:measure("sessions_started", "counter");