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

Performance Co-Pilot的更多相关文章

  1. Performance Monitor4:监控SQL Server的IO性能

    SQL Server的IO性能受到物理Disk的IO延迟和SQL Server内部执行的IO操作的影响.在监控Disk性能时,最主要的度量值(metric)是IO延迟,IO延迟是指从Applicati ...

  2. Performance Tuning

    本文译自Wikipedia的Performance tuning词条,原词条中的不少链接和扩展内容非常值得一读,翻译过程中暴露了个人工程学思想和英语水平的不足,翻译后的内容也失去很多准确性和丰富性,需 ...

  3. Performance Monitor3:监控SQL Server的内存压力

    SQL Server 使用的资源受到操作系统的调度,同时,SQL Server在内部实现了一套调度算法,用于管理从操作系统获取的资源,主要是对内存和CPU资源的调度.一个好的数据库系统,必定在内存中缓 ...

  4. [MySQL Reference Manual] 23 Performance Schema结构

    23 MySQL Performance Schema 23 MySQL Performance Schema 23.1 性能框架快速启动 23.2 性能框架配置 23.2.1 性能框架编译时配置 2 ...

  5. Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译

    本文是Unity官方教程,性能优化系列的第二篇<Diagnosing performance problems using the Profiler window>的简单翻译. 相关文章: ...

  6. 使用ANTS Performance Profiler&ANTS Memory Profiler工具分析IIS进程内存和CPU占用过高问题

    一.前言 最近一段时间,网站经常出现两个问题: 1.内存占用率一点点增高,直到将服务器内存占满. 2.访问某个页面时,页面响应过慢,CPU居高不下. 初步判断内存一点点增多可能是因为有未释放的资源一直 ...

  7. KPI:Key Performance Indicator

    通信中KPI,是Key Performance Indicators的缩写,意思是关键性能指标.performance 还有绩效:业绩的意思,但显然不适用于这种场合. 通信中KPI的内容有:掉话率.接 ...

  8. Performance Monitor1:开始性能监控

    Performance Monitor是Windows内置的一个可视化监控工具,能够在OS级别上实时记录系统资源的使用情况,通过收集和存储日志数据,在SQL Server发生异常时,能够还原系统当时的 ...

  9. Performance Monitor2:Peformance Counter

    Performance Counter 是量化系统状态或活动的一个数值,Windows Performance Monitor在一定时间间隔内(默认的取样间隔是15s)获取Performance Co ...

  10. Disk IO Performance

    一,使用 Performance counter 监控Disk IO问题 1,Physical Disk vs. Logical Disk Windows可以在一个Physical Disk上划出若干 ...

随机推荐

  1. poj 3469 最小割模板sap+gap+弧优化

    /*以核心1为源点,以核心2为汇点建图,跑一遍最大流*/ #include<stdio.h> #include<string.h> #include<queue> ...

  2. Spring事务的传播行为分析

    前言 最近项目有涉及到Spring事务,所以工作之余,想认真了解学习下Spring事务,查阅了若干资料,做了一个demo(PS:参考了大牛的). 现分享总结如下: 1.Spring 事务的简介 理解事 ...

  3. 格式化LInux后开机进入grub怎么办

    问题:格式化Linux系统盘之后,重启进入grub 1.grub 引导进入windows系统 进入grub grub>rootnoverify (hd0,1) [可以使用Tab键( 比如 roo ...

  4. Eclipse全局搜索

    按[Ctrl]+[H] 搜索时支持一些正则表达式. 参考: http://blog.csdn.net/huaweitman/article/details/38709323

  5. HDU 5186

    easy !! #include <iostream> #include <cstdio> #include <algorithm> #define LL __in ...

  6. Win10 中修改cmd字体引发的问题

    Win10 中修改cmd字体引发的问题 学习了:https://www.cnblogs.com/Diryboy/archive/2015/12/05/Use-Consolas-MSYaHei-in-C ...

  7. RubyMine中自动完成只输入部分字母

    RubyMine中自动完成只输入部分字母 1,有下划线情况(其实看第二点跟下划线就关系不大了) 对于attr_reader之类的输入,输入attr之后,下划线可以不输入,然后输入r或者e都可以出来, ...

  8. HDOJ 5421 Victor and String 回文串自己主动机

    假设没有操作1,就是裸的回文串自己主动机...... 能够从头部插入字符的回文串自己主动机,维护两个last点就好了..... 当整个串都是回文串的时候把两个last统一一下 Victor and S ...

  9. UI_UINavigationController

    创建 UINavigationController(导航控制器) 在AppDelegate.m中创建 // 创建一个普通控制器 RootViewController *rootVC = [[RootV ...

  10. 【待解决】使用JUnit时报错java.lang

    编写selenium自动化代码,代码逻辑应该都没有错,运行时老是报如下错误 java.lang.NoClassDefFoundError: org/json/JSONException 解决办法:导入 ...