Mercurial > prosody-wiki
annotate mod_stanza_counter.wiki @ 277:7a597092e71f
updated wikis.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Sat, 26 May 2012 02:55:01 +0000 |
parents | b5563fb582aa |
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). |