Last active
January 28, 2016 06:00
-
-
Save kentarosasaki/177e548ee7f1600277a1 to your computer and use it in GitHub Desktop.
StatsDをインストールしてみた (debパッケージ編) ref: http://qiita.com/kentarosasaki/items/01ad7c98a98b77176dbe
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
# apt-get install npm nodejs-legacy git nodejs devscripts debhelper |
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
# mkdir ~/build | |
# cd ~/build |
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
# git clone https://github.com/etsy/statsd.git |
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
# cd statsd | |
# dpkg-buildpackage |
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
# cd ../ | |
# ls -l | |
total 844 | |
drwxr-xr-x 13 root root 4096 Jan 28 13:42 statsd | |
-rw-r--r-- 1 root root 45070 Jan 28 13:43 statsd_0.7.2_all.deb | |
-rw-r--r-- 1 root root 1368 Jan 28 13:43 statsd_0.7.2_amd64.changes | |
-rw-r--r-- 1 root root 494 Jan 28 13:43 statsd_0.7.2.dsc | |
-rw-r--r-- 1 root root 801078 Jan 28 13:43 statsd_0.7.2.tar.gz |
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
# dpkg -i statsd*.deb | |
Selecting previously unselected package statsd. | |
(Reading database ... 152932 files and directories currently installed.) | |
Preparing to unpack statsd_0.7.2_all.deb ... | |
Unpacking statsd (0.7.2) ... | |
Setting up statsd (0.7.2) ... | |
npm WARN package.json statsd@0.7.2 No README data | |
npm http GET https://registry.npmjs.org/winser/0.1.6 | |
npm http GET https://registry.npmjs.org/generic-pool/2.2.0 | |
... |
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
# service statsd status | |
statsd stop/waiting | |
# service statsd start | |
statsd start/running, process 29184 |
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
# cat /etc/statsd/localConfig.js | |
{ | |
graphitePort: 2003 | |
, graphiteHost: "localhost" | |
, port: 8125 | |
} |
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
# cd /usr/share/statsd/node_modules | |
# npm install statsd-influxdb-backend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment