Kim Alvefur
98795d0b6e
mod_csi: Update correct variables when counting states
2024-09-21 22:07:36 +02:00
Kim Alvefur
07d96d6b75
mod_csi: Use same label name for gauge as for older counter
...
Consistency.
2024-09-06 20:49:44 +02:00
Kim Alvefur
ce8b91e4a7
mod_csi: Optimize metrics collection (prematurely)
...
I did not measure, but this should be way fewer function calls.
2024-08-18 16:56:36 +02:00
Kim Alvefur
8d00eaa0c7
mod_csi: Rename unused loop variables to '_' [luacheck]
2024-08-17 23:15:14 +02:00
Kim Alvefur
0a910917e7
mod_csi: Count how many sessions are using CSI and their state
2024-08-17 23:13:28 +02:00
Kim Alvefur
f4c4829d0f
mod_csi: Always advertise feature
...
Was previously supposed to be conditionally advertised based on
availability of a module handling the actual optimizations, which was
removed in be9ac41f1619
2023-04-16 12:47:55 +02:00
Kim Alvefur
ffeea16393
mod_csi: Remove module status, doesn't work because of mod_smacks
...
This was meant to warn in case you had only mod_csi without a logic
handling module like mod_csi_simple by checking if anything hooked this
event, however mod_smacks also hooks this event and so this isn't really
a useful way of detecting this condition.
2023-04-10 13:50:09 +02:00
Kim Alvefur
c85502f003
mod_csi: Drop summary stats, doesn't work in normal module
...
This method ends up going up for each collection and the :clear() method
is only available to global modules (see e.g. mod_c2s), while regular
per-host modules get scoped stats
2023-04-06 08:36:39 +02:00
Kim Alvefur
90ee187b23
mod_csi: Add metrics, covering changes and totals
...
Motivation: Investigating clients that seem to forget to set CSI.
Also, of course, MORE GRAPHS!
2023-04-06 08:01:55 +02:00
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
2023-03-24 13:15:28 +01:00
Kim Alvefur
8703eaa89a
mod_csi: Cache CSI module availability to improve readabilty
2019-11-23 17:15:34 +01:00
Kim Alvefur
7c3ba237b9
mod_csi: Set module status based on whether a CSI handler module appears to be loaded
2019-11-23 17:09:48 +01:00
Kim Alvefur
aa5d88fe44
mod_csi: Only advertise CSI to clients if something is handling CSI events
2019-11-17 23:53:51 +01:00
Kim Alvefur
d4f6ff10dc
mod_csi: Fix copypaste mistake [luacheck]
2018-11-27 21:23:22 +01:00
Kim Alvefur
a24712e845
mod_csi: Set session.state to simplify CSI modules
...
Moved here from mod_csi_simple
2018-11-27 19:34:21 +01:00
Matthew Wild
5d94b20a62
mod_csi: Imported from prosody-modules 66b3085ecc49
2018-08-01 10:26:08 +01:00