Install

Performance Co-Pilot 提前安装依赖

[root@iZrj97j6t7ih9hgz1me35hZ ~]# cat install.sh
yum install -y docker
yum install -y git
yum install -y yum-utils-1.1.31-40.el7.noarch
yum install lex
yum install flex
yum install -y bison
yum install -y perl-ExtUtils-MakeMaker.noarch
yum install -y libmicrohttpd
yum install -y libmicrohttpd*
yum install -y gcc-c++
yum install -y pcp-libs-3.11.3-4.el7.x86_64
yum install -y pcp-3.11.3-4.el7.x86_64

Installing Performance Co-Pilot 安装PCP

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

cd pcp
groupadd -r pcp
useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi #./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --with-rcdir=/etc/init.d make
make install /etc/init.d/pmcd start

Building Vector from Source 源码安装Vector

安装vector

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

安装:Node.JS, npm and Bower

# yum install -y npm
# npm install
# npm install -g bower
# bower install --allow-root
# npm install --global gulp-cli
# gulp build # Development ServerYou can run Vector with Gulp’s development web server and live reload. In order to start Gulp’s web server, just execute the serve task:
# gulp serve

功能

PCP Collection Daemon (PMCD)

# /etc/init.d/pmcd start

pmie (Performance Metrics Inference Engine)

[root@iZrj97j6t7ih9hgz1me35hZ ~]# chkconfig pmie on

REF

web:

http://vectoross.io/docs/installing-performance-co-pilot.html

git Install :

https://github.com/muahao/pcp/blob/master/INSTALL.md

PCP quick start: http://pcp.io/docs/guide.html

快速部署PCP

#!/bin/bash
#Installing Collector Hosts
yum install pcp -y
chkconfig pmcd on
service pmcd start
chkconfig pmlogger on
service pmlogger start #Installing Monitor Host
yum install pcp-doc pcp-gui -y
echo localhost n n PCP_LOG_DIR/pmlogger/localhost -r -T24h10m -c localhost >> /etc/pcp/pmlogger/control
service pmlogger restart #Dynamic Host Discovery
yum install pcp-manager -y
chkconfig pmmgr on echo localhost >> /etc/pcp/pmmgr/target-host
echo avahi >> /etc/pcp/pmmgr/target-discovery
echo probe= ip.addr.tup.le/netmask >> /etc/pcp/pmmgr/target-discovery
service pmmgr restart
find /var/log/pcp/pmmgr #Installation Health Check
pcp -h localhost #Monitoring Live Performance Metrics
pminfo -h localhost #Retrospective Performance Analysis #Visualizing iostat and sar Data
#iostat -t -x 2 > iostat.out
#iostat2pcp iostat.out iostat.pcp
#pmchart -t 2sec -a iostat.pcp #Process Level Performance Monitoring
pminfo proc #Performance Metrics Inference
chkconfig pmie on
service pmie start
#Enable monitoring of metrics from remote host acme.com :
echo acme.com n PCP_LOG_DIR/pmie/acme.com -c config.acme.com
service pmie restart #PCP Web Services
yum install pcp-webapi -y
chkconfig pmwebd on
service pmwebd start #User Web Interface for Performance Metrics
yum install -y pcp-webjs

最新文章

  1. MySQL Group Replication 技术点
  2. asp.net web.config 设置Session过期时间
  3. 使用DOSBox在Win7_x64下搭建汇编环境
  4. Navicat MySQL连接Linux下MySQL的问题解决方案
  5. hduoj 1077 Catching Fish 求单位圆最多覆盖点个数
  6. Apache开启Gzip压缩设置(转)
  7. 实用脚本 - - insertAfter 在现有元素后插入一个新元素
  8. POJ 2420 A Star not a Tree? (计算几何-费马点)
  9. YPreLoad
  10. HDU 1495 非常可乐 BFS
  11. Node.js EventEmitter
  12. EAS(学生管理系统)初建
  13. SLAM+语音机器人DIY系列:(二)ROS入门——8.理解roslaunch在大型项目中的作用
  14. 验证码的实现py3
  15. vue2.0 之计算属性和数据监听
  16. C# this调用构造函数及析构函数
  17. python gui messagebox
  18. BZOJ3052: [wc2013]糖果公园【树上带修莫队】
  19. (转)python 之路,200行Python代码写了个打飞机游戏!
  20. hive使用derby的服务模式(可以远程模式)

热门文章

  1. Java开发编码规范
  2. Spring Boot-整合Mybatis(五)
  3. Android ScrollView中嵌套ListView
  4. 【JNI探索之路系列】之七:JNI要点总结
  5. Activiti的简单入门样例(经典的请假样例)
  6. KVO---视图间数据的传递:标签显示输入的内容【多个视图中】
  7. luogu2618 数字工程 DP
  8. spring属性的三种注入方法
  9. 【NOIP 2011】 计算系数
  10. 【POJ 1222】 EXTENDED LIGHTS OUT