aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi.lua
Commit message (Collapse)AuthorAgeFilesLines
* mod_csi: Update correct variables when counting statesKim Alvefur2024-09-211-2/+2
|
* mod_csi: Use same label name for gauge as for older counterKim Alvefur2024-09-061-1/+1
| | | | Consistency.
* mod_csi: Optimize metrics collection (prematurely)Kim Alvefur2024-08-181-9/+10
| | | | I did not measure, but this should be way fewer function calls.
* mod_csi: Rename unused loop variables to '_' [luacheck]Kim Alvefur2024-08-171-2/+2
|
* mod_csi: Count how many sessions are using CSI and their stateKim Alvefur2024-08-171-0/+20
|
* mod_csi: Always advertise featureKim Alvefur2023-04-161-2/+1
| | | | | | Was previously supposed to be conditionally advertised based on availability of a module handling the actual optimizations, which was removed in be9ac41f1619
* mod_csi: Remove module status, doesn't work because of mod_smacksKim Alvefur2023-04-101-12/+0
| | | | | | | 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.
* mod_csi: Drop summary stats, doesn't work in normal moduleKim Alvefur2023-04-061-9/+0
| | | | | | 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
* mod_csi: Add metrics, covering changes and totalsKim Alvefur2023-04-061-0/+12
| | | | | Motivation: Investigating clients that seem to forget to set CSI. Also, of course, MORE GRAPHS!
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-1/+1
|
* mod_csi: Cache CSI module availability to improve readabiltyKim Alvefur2019-11-231-1/+4
|
* mod_csi: Set module status based on whether a CSI handler module appears to ↵Kim Alvefur2019-11-231-0/+9
| | | | be loaded
* mod_csi: Only advertise CSI to clients if something is handling CSI eventsKim Alvefur2019-11-171-1/+1
|
* mod_csi: Fix copypaste mistake [luacheck]0.11.1Kim Alvefur2018-11-271-1/+1
|
* mod_csi: Set session.state to simplify CSI modulesKim Alvefur2018-11-271-0/+1
| | | | Moved here from mod_csi_simple
* mod_csi: Imported from prosody-modules 66b3085ecc49Matthew Wild2018-08-011-0/+22