diff --git a/README.rst b/README.rst index 92f48fa..8ba750c 100644 --- a/README.rst +++ b/README.rst @@ -639,11 +639,19 @@ Alignak internal metrics http://grafana.demo.alignak.net TBC -For techies, statsD configuration and run: +Install node.js on your server according to the recommended installation process. On FreeBSD: :: + pkg install node + cd /usr/ports/www/node/ && make install clean - $cd /usr/local/share/statsd - $cat alignak.js +To get the most recent StatsD (if you distro packaging do not provide it, you must clone the git repository: +:: + cd ~/repos + git clone https://github.com/etsy/statsd + + # Create an alignak.js file with the following content (adapt to your graphite configuration) + cp exampleConfig.js alignak.js + cat alignak.js { graphitePort: 2003 , graphiteHost: "10.0.0.10" @@ -651,9 +659,11 @@ For techies, statsD configuration and run: , backends: [ "./backends/graphite" ] } + # Start the StatsD daemon in a screen $screen -S statsd $node stats.js alignak.js - $Ctrl+A Ctrl+D + # And leave the screen... + $Ctrl+AD What's behind the backend script diff --git a/alignak_demo/etc/alignak.cfg b/alignak_demo/etc/alignak.cfg index b886af3..b8381b7 100755 --- a/alignak_demo/etc/alignak.cfg +++ b/alignak_demo/etc/alignak.cfg @@ -77,6 +77,7 @@ cfg_dir=arbiter/realms # --- # Number of minutes between 2 retention save, default is 60 minutes #retention_update_interval=60 +retention_update_interval=10 # Checks configuration # --- @@ -255,10 +256,10 @@ pack_distribution_file=/usr/local/var/lib/alignak/pack_distribution.dat # Export all alignak inner performances into a statsd server. # By default at localhost:8125 (UDP) with the alignak prefix # Default is not enabled -#statsd_host=localhost -#statsd_port=8125 -#statsd_prefix=alignak -#statsd_enabled=0 +statsd_host=localhost +statsd_port=8125 +statsd_prefix=alignak-demo +statsd_enabled=1 # --------------------------------------------------------------------