Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Last active January 28, 2016 06:00
Show Gist options
  • Save kentarosasaki/177e548ee7f1600277a1 to your computer and use it in GitHub Desktop.
Save kentarosasaki/177e548ee7f1600277a1 to your computer and use it in GitHub Desktop.
StatsDをインストールしてみた (debパッケージ編) ref: http://qiita.com/kentarosasaki/items/01ad7c98a98b77176dbe
# apt-get install npm nodejs-legacy git nodejs devscripts debhelper
# mkdir ~/build
# cd ~/build
# git clone https://github.com/etsy/statsd.git
# cd statsd
# dpkg-buildpackage
# 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
# 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
...
# service statsd status
statsd stop/waiting
# service statsd start
statsd start/running, process 29184
# cat /etc/statsd/localConfig.js
{
graphitePort: 2003
, graphiteHost: "localhost"
, port: 8125
}
# 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