This module counts incoming and outgoing stanzas from when the instance started, and makes the data available to other modules by creating a global prosody. object
The counter module is “stanza_counter”, the example output module is stanza_counter_http.
Copy both files into prosody’s module directory and place ’em into your enabled modules (stanza_counter_http requires to be loaded into the global section!)
Config for stanza_counter_http:
= "/counter-path-custom/" stanza_counter_basepath
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_stanza_counter
For earlier versions see the documentation for installing 3rd party modules