aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-05 15:49:47 +0200
committerKim Alvefur <zash@zash.se>2021-10-05 15:49:47 +0200
commitcdffc6aac24cc44445d267416e16b52bb1731735 (patch)
treef05a2753e29c7d566f1bf5c99fb5f52879dc17c7 /plugins
parent841384e7beaa5279a9f8925dcc379dc5032e217b (diff)
downloadprosody-cdffc6aac24cc44445d267416e16b52bb1731735.tar.gz
prosody-cdffc6aac24cc44445d267416e16b52bb1731735.zip
mod_csi_simple: Provide custom set of timing buckets
The default of 0.001..100.0 did not feel suitable here. This might be better. Longer is better and hold times less than a few seconds is generally undesirable.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi_simple.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 38b6df29..74fae4c8 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -105,7 +105,8 @@ local function with_timestamp(stanza, from)
return stanza;
end
-local measure_buffer_hold = module:measure("buffer_hold", "times");
+local measure_buffer_hold = module:measure("buffer_hold", "times",
+ { buckets = { 0.1; 1; 5; 10; 15; 30; 60; 120; 180; 300; 600; 900 } });
local flush_reasons = module:metric(
"counter", "flushes", "",