[asterisk-dev] [Code Review] 2460: Example of how to use the Stasis message bus

David Lee reviewboard at asterisk.org
Fri Apr 19 10:41:13 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2460/
-----------------------------------------------------------

Review request for Asterisk Developers and Matt Jordan.


Repository: Asterisk


Description
-------

In order to get people familiar with the Stasis message bus, it would
be useful to have something of a tutorial. Since I'm not clever enough
to think of some cool integration we could do with Twitter, I settled
for something that might actually be useful.

This patch adds a res_statsd.so module, which implements a basic
statsd[1] client. Statsd is a very simple statistics gathering server,
which can publish its results to a backend graphing engine, like
Graphite[2]. There are several different Statsd server
implementations[3], so you can pick what works best for your
environment.

The actual example of how to use the Stasis message bus is in
res_chan_stats.so. This module demonstrates how to use subscriptions
and the message router by monitoring messages and posting channels
stats to the statsd server.

A wiki page walking through res_chan_stats.so is forthcoming.

 [1]: https://github.com/etsy/statsd/
 [2]: http://graphite.readthedocs.org/en/latest/
 [3]: http://joemiller.me/2011/09/21/list-of-statsd-server-implementations/


Diffs
-----

  /trunk/res/res_statsd.exports.in PRE-CREATION 
  /trunk/res/res_statsd.c PRE-CREATION 
  /trunk/res/res_chan_stats.c PRE-CREATION 
  /trunk/include/asterisk/utils.h 386104 
  /trunk/include/asterisk/statsd.h PRE-CREATION 
  /trunk/configs/statsd.conf.sample PRE-CREATION 

Diff: https://reviewboard.asterisk.org/r/2460/diff/


Testing
-------

Verified that channel traffic (using sipp) caused statsd to draw some
graphs. They didn't look exactly right, but I believe that was because
of my Graphite configuration.


Thanks,

David Lee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130419/67f33f76/attachment.htm>


More information about the asterisk-dev mailing list