Skip to content

Commit

Permalink
Update alignak.cfg: shorter retention interval, activate StatsD
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Jan 15, 2017
1 parent ce412e1 commit 14a9c1b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
18 changes: 14 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -639,21 +639,31 @@ 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"
, port: 8125
, 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
Expand Down
9 changes: 5 additions & 4 deletions alignak_demo/etc/alignak.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ---
Expand Down Expand Up @@ -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


# --------------------------------------------------------------------
Expand Down

0 comments on commit 14a9c1b

Please sign in to comment.