Software / code / prosody
Comparison
plugins/mod_csi_simple.lua @ 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 |
| parent | 11573:cb5748f94840 |
| child | 11913:75d69e4c54a2 |
comparison
equal
deleted
inserted
replaced
| 11833:bd86ab8122d9 | 11834:f54d9abc4e14 |
|---|---|
| 103 stanza:add_direct_child(st.stanza("delay", {xmlns = "urn:xmpp:delay", from = from, stamp = dt.datetime()})); | 103 stanza:add_direct_child(st.stanza("delay", {xmlns = "urn:xmpp:delay", from = from, stamp = dt.datetime()})); |
| 104 end | 104 end |
| 105 return stanza; | 105 return stanza; |
| 106 end | 106 end |
| 107 | 107 |
| 108 local measure_buffer_hold = module:measure("buffer_hold", "times"); | 108 local measure_buffer_hold = module:measure("buffer_hold", "times", |
| 109 { buckets = { 0.1; 1; 5; 10; 15; 30; 60; 120; 180; 300; 600; 900 } }); | |
| 109 | 110 |
| 110 local flush_reasons = module:metric( | 111 local flush_reasons = module:metric( |
| 111 "counter", "flushes", "", | 112 "counter", "flushes", "", |
| 112 "CSI queue flushes", | 113 "CSI queue flushes", |
| 113 { "reason" } | 114 { "reason" } |