Performance Co-Pilot
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
muahao@aliyun.com
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何调试 malloc 的底层源码
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 因为Apifox不支持离线,我果断选择了Apipost!
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端