Changeset

11834:f54d9abc4e14

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.
author Kim Alvefur <zash@zash.se>
date Tue, 05 Oct 2021 15:49:47 +0200
parents 11833:bd86ab8122d9
children 11835:a405884c62f4
files plugins/mod_csi_simple.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua	Sun Oct 03 19:05:15 2021 +0200
+++ b/plugins/mod_csi_simple.lua	Tue Oct 05 15:49:47 2021 +0200
@@ -105,7 +105,8 @@
 	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", "",