Performance Co-Pilot (PCP) is an open source, distributed, metrics gathering and analysis system. In the latest release of Red Hat Enterprise Linux (i.e. 7.2), we're not only shipping PCP 3.10.6, but a new browser based dashboard, Vector, which is built on top of PCP, and contributed by Netflix. Together, they can provide a comprehensive overview of a local, or remote machine.
In this tutorial, we'll be utilizing two different machines to demonstrate
this powerful functionality.
The environment: our local machine is currently running Red Hat Enterprise Linux 7.2 (with the server-optional repo enabled for the dashboard packages) and a remote server (also on RHEL 7.2) is running our theoretical workload.
First, we want to get the PCP components up and running on our local workstation.
To do this, we'll need to set up PCP's Collector Daemon (PMCD), the Performance Metrics Web Daemon (pmwebd), as well as installing the vector bundle.
# yum install pcp-webapp-vector pcp-webapi # systemctl start pmcd pmwebd # systemctl enable pmcd pmwebd
Next - we'll check the output of running $pcp on the command line:
[lberk@toium ~]$ pcp Performance Co-Pilot configuration on toium: platform: Linux toium 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 hardware: 4 cpus, 2 disks, 1 node, 3831MB RAM timezone: EST+5 services: pmcd pmwebd pmcd: Version 3.10.6-1, 7 agents, 1 client pmda: root pmcd proc xfs linux mmv jbd2
At this point, by pointing our browser to:
http://localhost:44323/vector/index.html#/?host=localhost:44323&hostspec=localhost
...we'll be able to use an instance of Vector, communicating with our local pmwebd, displaying metrics about our localhost.
The screen should look something like this:
The default dashboard has metrics related to CPU usage, network, memory, and disk usage. However, we can explore a few more metrics about each subsystem by adding them via the 'widget' button. Below is an example adding the 'context switches' metric to a CPU focused dashboard.
While we are viewing and consuming the metrics on our local workstation, it wouldn't make sense to run our dashboard on the same server running our mission critical application. Luckily, PCP's distributed architecture allows for Vector to point our local pmwebd at remote pmcds (performance metric collection daemons).
To illustrate this, we'll set up our remote RHEL7 system to consume metrics through Vector.
# yum install pcp # firewall-cmd --add-port=44321/tcp --permanent # firewall-cmd --reload # systemctl start pmcd # systemctl enable pmcd [lberk@rhel7 ~]$ pcp Performance Co-Pilot configuration on rhel7: platform: Linux rhel7 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 hardware: 2 cpus, 1 disk, 1 node, 1840MB RAM timezone: MST+7 services: pmcd pmcd: Version 3.10.6-1, 7 agents, 2 clients pmda: root pmcd proc xfs linux mmv jbd2
Now, back on our dashboard, the 'hostname' refers to the system which pmwebd is located on (still using localhost). If we hit the (+) operator however, the drop down field lists the Hostspec entry. We'll need to change this Hostspec field to the rhel7 hostname (in our case: 'rhel7'), such as in our screenshot.
This Hostspec field can be used as a typical pmcd host specification, complete with the ability to monitor container instances on a specific host. It can also be pointed at any running pmcd from PCP version 3.10.4 and upward (making it compatible, for instance, with hosts running Red Hat Enterprise 6.7).
Interested in learning more? Click here. Alternatively, do feel free to reach out with questions using the comments section (below).
저자 소개
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.