Netflix效能監控工具Vector介紹

banq發表於2015-04-09
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

相關文章