Skip to content

Building Statsd

aborkar-ibm edited this page Mar 26, 2019 · 23 revisions

Building Statsd

The instructions provided below specify the steps to build Statsd version 0.8.1 on Linux on IBM Z for the following distributions:

  • RHEL (7.4, 7.5, 7.6)
  • SLES (12 SP3, 15)
  • Ubuntu (16.04, 18.04)

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified

  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it

Step 1: Install the Dependencies

  • RHEL (7.4, 7.5, 7.6)

      sudo yum install -y git wget tar unzip hostname make gcc-c++
    
  • SLES (12 SP3, 15)

      sudo zypper install -y git wget tar unzip python make gcc-c++
    
  • Ubuntu (16.04, 18.04)

      sudo apt-get install -y git wget tar unzip hostname python g++ make
    
  • Install Nodejs

     cd /<source_root>/
     wget https://nodejs.org/dist/v6.12.2/node-v6.12.2-linux-s390x.tar.gz
     tar -xvf node-v6.12.2-linux-s390x.tar.gz
     export PATH=$PATH:/<source_root>/node-v6.12.2-linux-s390x/bin
     node -v

Step 2: Build and install Statsd

  • Download Statsd source code

     cd /<source_root>/
     git clone https://github.com/etsy/statsd.git
     cd statsd
     git checkout v0.8.1
    
  • Build Statsd

      npm install
    

Step 3: Testing (Optional)

  • Run test cases
 cd /<source_root>/statsd/
./run_tests.sh

Step 4: Run Statsd daemon

 cd /<source_root>/statsd
 node stats.js /path/to/config

References:

https://github.com/etsy/statsd

Clone this wiki locally