annotate mod_stanza_counter.wiki @ 514:9427318ae72d default tip

added page for mod_delegation
author Goffi <goffi@goffi.org>
date Thu, 07 May 2015 23:31:20 +0200
parents 7a597092e71f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
b5563fb582aa updated wiki.
Marco Cirillo <maranda@lightwitch.org>
parents: 253
diff changeset
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
7a597092e71f updated wikis.
Marco Cirillo <maranda@lightwitch.org>
parents: 275
diff changeset
17 Config for stanza_counter_http:
7a597092e71f updated wikis.
Marco Cirillo <maranda@lightwitch.org>
parents: 275
diff changeset
18 <code language="lua">
7a597092e71f updated wikis.
Marco Cirillo <maranda@lightwitch.org>
parents: 275
diff changeset
19 stanza_counter_basepath = "/counter-path-custom/"
7a597092e71f updated wikis.
Marco Cirillo <maranda@lightwitch.org>
parents: 275
diff changeset
20 </code>
7a597092e71f updated wikis.
Marco Cirillo <maranda@lightwitch.org>
parents: 275
diff changeset
21
275
b5563fb582aa updated wiki.
Marco Cirillo <maranda@lightwitch.org>
parents: 253
diff changeset
22 = Info =
221
8c19cbb8a6be correction, tweak.
Marco Cirillo <maranda@lightwitch.org>
parents: 220
diff changeset
23
275
b5563fb582aa updated wiki.
Marco Cirillo <maranda@lightwitch.org>
parents: 253
diff changeset
24 * As of now to count components stanzas, it needs to be manually loaded (inserted into modules_enabled of the components' sections) on these.
b5563fb582aa updated wiki.
Marco Cirillo <maranda@lightwitch.org>
parents: 253
diff changeset
25 * This version isn't compatible with previous versions of prosody (looks at 0.8-diverge branch for olders).