Created
September 29, 2014 09:12
-
-
Save tolleiv/a15f167a0387672670d0 to your computer and use it in GitHub Desktop.
Building a statsd backage with the Zabbix backend configured
This file contains hidden or 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
https://github.com/etsy/statsd | |
https://github.com/parkerd/statsd-zabbix-backend | |
https://www.digitalocean.com/community/tutorials/how-to-configure-statsd-to-collect-arbitrary-stats-for-graphite-on-ubuntu-14-04 | |
apt-get install python-software-properties | |
apt-add-repository ppa:chris-lea/node.js | |
apt-get update | |
apt-get install git nodejs npm devscripts debhelper | |
mkdir ~/build | |
cd ~/build | |
git clone https://github.com/etsy/statsd.git | |
cd statsd | |
npm install statsd-zabbix-backend | |
echo "node_modules/* /usr/share/statsd/node_modules“ >> debian/statsd.install | |
dpkg-buildpackage | |
cd .. | |
dpkg -i statsd*.deb | |
cat > /opt/statsd/localConfig.js <<EOT | |
{ | |
debug: true, | |
flushInterval: 10000, | |
percentThreshold: [95, 99], | |
backends: ["./node_modules/statsd-zabbix-backend"], | |
zabbixPort: 10051, | |
zabbixHost: "localhost", | |
zabbixSender: "/usr/bin/zabbix_sender“ | |
} | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment