zoukankan      html  css  js  c++  java
  • 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
    
    
  • 相关阅读:
    JavaScript函数
    JavaScript数组知识点
    面向对象之继承及属性查找顺序
    面向对象二
    面向对象
    正则表达式补充
    垃圾回收机制、标记删除及分代回收
    hashlib、hmac、subprocess、configparser模块
    模块、起别名、from导入
    递归、匿名函数、内置函数
  • 原文地址:https://www.cnblogs.com/muahao/p/6858060.html
Copyright © 2011-2022 走看看