Created
October 12, 2012 15:37
-
-
Save dlecocq/3879832 to your computer and use it in GitHub Desktop.
Statsd Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install zabbix_sender | |
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm | |
sudo yum -y install zabbix-agent | |
# Install node | |
cd && curl -OL http://nodejs.org/dist/v0.8.11/node-v0.8.11.tar.gz | |
tar xf node-v0.8.11.tar.gz | |
cd node-v0.8.11 && ./configure && make -j2 && sudo make install | |
# Download statsd, backend | |
cd ~/git && git clone https://github.com/etsy/statsd | |
cd ~/git/statsd && npm install statsd-zabbix-backend | |
# Make our config | |
echo "{ | |
// Listen on the default port | |
port: 8125, | |
// We're only interested in zabbix | |
//backends: [\"statsd-zabbix-backend\"], | |
// Our zabbix configuration | |
zabbixPort: 10051, | |
zabbixHost: \"localhost\", | |
zabbixSender: \"/usr/bin/zabbix_sender\", | |
backends: [\"./backends/console\"], | |
debug: true | |
}" > freshscapeConfig.js | |
# And now start it up | |
screen -S statsd node stats.jd freshscapeConfig.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment