mod_stanza_counter

Introduction

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

Details

The counter module is “stanza_counter”, the example output module is stanza_counter_http.

Usage

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:


stanza_counter_basepath = "/counter-path-custom/"

Info


Installation

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