Netflix性能监控工具Vector介绍

Vector是Netflix开源的主机性能监控框架,能高分辨采集系统和应用程序的各种数据输出到浏览器中,相比传统通过登录主机运行各种命令获得系统度量情况,使用Vector能更快地响应系统运维情况。

Vector依赖于Performance Co-Pilot (PCP)收集每个主机上度量信息,因此首先需要安装PCP:

$ git clone git://git.pcp.io/pcp

构建安装:

$ cd pcp
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
$ make
$ sudo make install

Vector是一个运行在客户端浏览器的静态Web应用,可以运行在Apache或Nginx:

$ git clone https://github.com/Netflix/vector.git

安装依赖:
$ cd Vector
$ bower install

你可以使用Gulp运行Vecot. Gulp是一个自动任务运行器,包括一个实时刷新的开发Web服务器,为了启动Gulp的web服务器, 首先安装Gulp :
$ npm install
$ gulp

也可以使用Python的 SimpleHTTPServer运行Vector :
$ cd Vector
$ python -m SimpleHTTPServer 8080

在浏览器打开Vector:
http://localhost:8080

在浏览器中可以看出Vector监控的项目如下:
CPU
Load Average
Runnable
CPU Utilization
Per-CPU Utilization
Context Switches

Memory
Memory Utilization
Page Faults

Disk
Disk IOPS
Disk Throughput
Disk Utilization
Disk Latency

Network
Network Drops
TCP Retransmits
TCP Connections
Network Throughput
Network Packets

Vector项目:Vector Github