什么是pcp
Performance Co-Pilot,提供一个框架和一组服务用来支持底层的性能监控和性能管理。为所有对性能敏感的应用提供统一的抽象层和 API。
ubuntu的docker版安装pcp
RUN echo "deb http://dl.bintray.com/pcp/trusty trusty main" | tee -a /etc/apt/sources.listRUN apt-get updateRUN apt-get install pcp pcp-webapi --assume-yes --force-yesRUN update-rc.d pmcd defaults# Starting pmcd on startupRUN update-rc.d pmwebd defaults# Starting pmwebd on startupRUN update-rc.d pmlogger defaults# Starting Logger on startupRUN service pmcd restartRUN service pmwebd restartRUN service pmlogger restartEXPOSE 44321EXPOSE 44323
entrypoint启动
#!/bin/bashservice pmcd startservice pmlogger startservice pmie startservice pmwebd start
运行
docker run -p 44321:44321 -p 44323:44323 --rm -it pcp-demo:0.1.0 /bin/bash
docker运行vector
docker pull netflixoss/vector:latestdocker run \ -d \ --name vector \ -p 10080:80 \ netflixoss/vector:latest
查看