Saturday, September 19, 2015

NetflixOSS: Installing and Running Vector

0 lượt xem comment 0 comments

Netflix Vector is a great monitoring tool for linux boxes.  Today i will show how to install, configure and run Netflix vector. We will do that on the AWS cloud.

I will do the installations on the Amazon Linux OS (CentOS Based) but IMHO you can use other OS if you want like Ubuntu.

Installing and Running Vector on Amazon Linux OS

First of all - You will need create a amazon instance, select amazon linux and them once you create the machine you need ssh into the box, them you are ready to install vector.

Install PCP

sudo yum install -y git gcc perl-CPAN <BR>
sudo yum install -y bison flex byacc <BR>
sudo yum install -y libmicrohttpd-devel <BR>
sudo yum install -y gcc-c++ <BR>
git clone git://git.pcp.io/pcp <BR>
cd pcp/ <BR>
sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi <BR>
sudo groupadd -r pcp <BR>
sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp <BR>
sudo make <BR>
sudo make install <BR>

Install Vector

git clone https://github.com/Netflix/vector.git <BR>
cd vector/ <BR>
sudo yum install -y nodejs --enablerepo=epel <BR>
sudo yum install -y npm --enablerepo=epel <BR>
npm install <BR>
sudo npm install -g bower <BR>
sudo npm install -g gulp <BR>
bower install <BR>
gulp build <BR>
sudo service pmcd start <BR>
sudo service pmwebd start <BR>
gulp serve <BR>

GO TO http://ec2-52-89-17-142.us-west-2.compute.amazonaws.com:3000/#/?host=ec2-52-89-17-142.us-west-2.compute.amazonaws.com&hostspec=ec2-52-89-17-142.us-west-2.compute.amazonaws.com

replace this URL for you amazon DNS_HOST_URL

view raw vector.md hosted with ❤ by GitHub
As you can see we installed PCP because vector is just a UI - IF you want you can install PCP in other boxes and them just have vector in one HOST. This is useful because them you can have a central repository for monitoring and you can see all in first place.

When you open vector in you browser will look something like this.


Have fun :-)

 Cheers,
Diego Pacheco
Tags: no keyword

comment 0 comments

Chuyên mục văn hoá giải trí của VnExpress

.

© 2017 www.blogthuthuatwin10.com

Tầng 5, Tòa nhà FPT Cầu Giấy, phố Duy Tân, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội
Email: nguyenanhtuan2401@gmail.com
Điện thoại: 0908 562 750 ext 4548; Liên hệ quảng cáo: 4567.