From 946eb5ede0859983e1c508520fb87a695affc597 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Fri, 26 Apr 2013 20:05:15 +0000 Subject: Example of how to use the Stasis message bus 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/ Review: https://reviewboard.asterisk.org/r/2460/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@386624 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/statsd.conf.sample | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 configs/statsd.conf.sample (limited to 'configs/statsd.conf.sample') diff --git a/configs/statsd.conf.sample b/configs/statsd.conf.sample new file mode 100644 index 000000000..806097300 --- /dev/null +++ b/configs/statsd.conf.sample @@ -0,0 +1,8 @@ +[general] +;enabled = yes ; When set to yes, statsd support is enabled +;server = 127.0.0.1 ; server[:port] of statsd server to use. + ; If not specified, the port is 8125 +;prefix = ; Prefix to prepend to all metrics +;add_newline = no ; Append a newline to every event. This is + ; useful if you want to run a fake statsd + ; server using netcat (nc -lu 8125) -- cgit v1.2.3