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: