1. Jacob Perkins
  2. erlang-collectd

Source

erlang-collectd /

Filename Size Date modified Message
ebin
src
29 B
fixup app config and add servers env, add servers at application start, Makefile with make plt and make check
47 B
Added tag 0.0.4 for changeset 149004f133a6
44 B
fixup app config and add servers env, add servers at application start, Makefile with make plt and make check
191 B
fixup app config and add servers env, add servers at application start, Makefile with make plt and make check
656 B
Added readme
1.2 KB
ejabberd_router-collectd-stats.patch
26 B
ejabberd types
806 B
example
228 B
mnesia_types.db, erlang & mnesia stats functions
75.2 KB
Added rebar
219 B
Added rebar

Erlang collectd application

You need a collectd configured to accept network connections.

Now with a custom ejabberd module.

Graphing

rrdtool graph /tmp/stanzas.png --lazy --imgformat PNG --end now --start end-200s --width 1200 \
DEF:ds1=stanzas-message.rrd:value:AVERAGE \
DEF:ds2=stanzas-iq.rrd:value:AVERAGE \
DEF:ds0=stanzas-presence.rrd:value:AVERAGE \
AREA:ds0#0000FF:"Presence" STACK:ds2#00FF00:"Iq" STACK:ds1#FF0000:"Message"

rrdtool graph /tmp/users.png --lazy --imgformat PNG --end now --start end-200s --width 1200 \
DEF:ds1=users-ejabberd.rrd:users:AVERAGE \
LINE1:ds1#0000FF:"Online users"