aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-02-16 00:15:36 +0100
committerKim Alvefur <zash@zash.se>2024-02-16 00:15:36 +0100
commit7be4e2fd31321ae7c6a9a07217345c9bdbd2878a (patch)
treefc3ba262745e3f3cef613848d7df0202e547466c
parent1768a2f369ef8ecb108e196917af8bfba11522ca (diff)
downloadprosody-7be4e2fd31321ae7c6a9a07217345c9bdbd2878a.tar.gz
prosody-7be4e2fd31321ae7c6a9a07217345c9bdbd2878a.zip
mod_smacks: Adjust buckets for resumption age statistic
Given that there are recommendations floating around recommending 24 hours session lifetime, having buckets up to 10 minutes wouldn't be useful in that case. Would be nice if we had some way to automatically assign suitable number series for buckets, scaled to what the configuration might be.
-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 486f611a..d4f0f371 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -39,7 +39,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, 30, 60, 120, 300, 600 }}
+ {buckets = {0, 1, 12, 60, 360, 900, 1440, 3600, 14400, 86400}}
):with_labels();
local sessions_expired = module:measure("sessions_expired", "counter");
local sessions_started = module:measure("sessions_started", "counter");