Mercurial > prosody-wiki
annotate mod_stanza_counter.wiki @ 496:7e648e80ff75
mod_roster_allinall: add page
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 Dec 2014 22:38:46 +0100 |
parents | 7a597092e71f |
children |
rev | line source |
---|---|
219
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
1 #summary Simple incoming and outgoing stanza counter |
275 | 2 #labels Stage-Stable |
219
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
3 |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
4 = Introduction = |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
5 |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
6 This module counts incoming and outgoing stanzas from when the instance started, |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
7 and makes the data available to other modules by creating a global prosody. object |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
8 |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
9 = Details = |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
10 |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
11 The counter module is "stanza_counter", the example output module is stanza_counter_http. |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
12 |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
13 = Usage = |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
14 |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
15 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!) |
d71a16f557cb
mod_stanza_counter: added wiki page.
Marco Cirillo <maranda@lightwitch.org>
parents:
diff
changeset
|
16 |
277 | 17 Config for stanza_counter_http: |
18 <code language="lua"> | |
19 stanza_counter_basepath = "/counter-path-custom/" | |
20 </code> | |
21 | |
275 | 22 = Info = |
221 | 23 |
275 | 24 * As of now to count components stanzas, it needs to be manually loaded (inserted into modules_enabled of the components' sections) on these. |
25 * This version isn't compatible with previous versions of prosody (looks at 0.8-diverge branch for olders). |