本文共 6444 字,大约阅读时间需要 21 分钟。
参考
简介
Pinpoint是一款全链路分析工具,提供了无侵入式的调用链监控、方法执行详情查看、应用状态信息监控等功能。基于GoogleDapper论文进行的实现,与另一款开源的全链路分析工具Zipkin类似,但相比Zipkin提供了无侵入式、代码维度的监控等更多的特性。 Pinpoint支持的功能比较丰富,可以支持如下几种功能:架构组成
Pinpoint 主要由 3 个组件外加 Hbase 数据库组成,三个组件分别为:Agent、Collector 和 Web UI。部署
1.安装docker docker-composeyum update -yyum install docker epel-release python-pip -ypip install --upgrade pippip install docker-compose
报错
Found existing installation: requests 2.6.0Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstal
排错
https://github.com/docker/compose/issues/5883与pip版本有关pip install --upgrade --force-reinstall pip==9.0.3
2.部署pinpoint
git clone cd pinpoint-dockerdocker-compose pull && docker-compose up -d[root@VM_8_77_centos ~]# git clone https://github.com/naver/pinpoint-docker.gitCloning into 'pinpoint-docker'...remote: Enumerating objects: 269, done.remote: Total 269 (delta 0), reused 0 (delta 0), pack-reused 269Receiving objects: 100% (269/269), 167.23 MiB | 649.00 KiB/s, done.Resolving deltas: 100% (129/129), done.[root@VM_8_77_centos ~]# cd pinpoint-docker[root@VM_8_77_centos pinpoint-docker]# lsdocker-compose.yml pinpoint-agent pinpoint-flink pinpoint-quickstart Readme.mddocs pinpoint-agent-attach-example pinpoint-hbase pinpoint-webLicense pinpoint-collector pinpoint-mysql pinpoint-zookeeper[root@VM_8_77_centos pinpoint-docker]# docker-compose pull && docker-compose up -dPulling jobmanager ... donePulling zoo2 ... donePulling taskmanager ... donePulling zoo1 ... donePulling zoo3 ... donePulling pinpoint-mysql ... donePulling pinpoint-hbase ... donePulling pinpoint-web ... donePulling pinpoint-collector ... donePulling pinpoint-agent ... donePulling pinpoint-quickstart ... doneCreating network "pinpoint-docker_pinpoint" with driver "bridge"Creating volume "pinpoint-docker_data-volume" with default driverCreating volume "pinpoint-docker_mysql_data" with default driverCreating pinpoint-docker_zoo2_1 ... doneCreating pinpoint-docker_zoo3_1 ... doneCreating pinpoint-mysql ... doneCreating pinpoint-hbase ... doneCreating pinpoint-flink-jobmanager ... doneCreating pinpoint-docker_zoo1_1 ... doneCreating pinpoint-flink-taskmanager ... doneCreating pinpoint-web ... doneCreating pinpoint-collector ... doneCreating pinpoint-agent ... doneCreating pinpoint-quickstart ... done
3.检查镜像及进程
[root@VM_8_77_centos pinpoint-docker]# docker images REPOSITORY TAG IMAGE ID CREATED SIZEdocker.io/zookeeper 3.4 4c7dee7bb5a5 2 weeks ago 150 MBdocker.io/pinpointdocker/pinpoint-agent 1.8.2 1c148b50ec86 6 weeks ago 27.2 MBdocker.io/pinpointdocker/pinpoint-hbase 1.8.2 f851bde92ec0 6 weeks ago 993 MBdocker.io/pinpointdocker/pinpoint-mysql 1.8.2 bf4cdc9f9506 6 weeks ago 390 MBdocker.io/pinpointdocker/pinpoint-web 1.8.2 a0fa17b655a5 6 weeks ago 598 MBdocker.io/pinpointdocker/pinpoint-collector 1.8.2 c6e189845eef 6 weeks ago 533 MBdocker.io/pinpointdocker/pinpoint-quickstart latest 125fa49a4a38 10 months ago 566 MBdocker.io/flink 1.3.1 c08ccd5bb7a6 21 months ago 480 MB[root@VM_8_77_centos pinpoint-docker]# docker-compose ps Name Command State Ports -------------------------------------------------------------------------------------------------------------------------pinpoint-agent /usr/local/bin/configure-a ... Up pinpoint-collector /usr/local/bin/start-colle ... Up 8080/tcp, 0.0.0.0:9994->9994/tcp, 0.0.0.0:9995->9995/tcp, 0.0.0.0:9995->9995/udp, 0.0.0.0:9996->9996/tcp, 0.0.0.0:9996->9996/udp pinpoint-docker_zoo1_1 /docker-entrypoint.sh zkSe ... Up 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker_zoo2_1 /docker-entrypoint.sh zkSe ... Up 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker_zoo3_1 /docker-entrypoint.sh zkSe ... Up 2181/tcp, 2888/tcp, 3888/tcp pinpoint-flink-jobmanager /docker-entrypoint.sh jobm ... Up 6123/tcp, 0.0.0.0:8081->8081/tcp pinpoint-flink-taskmanager /docker-entrypoint.sh task ... Up 0.0.0.0:19994->19994/tcp, 0.0.0.0:6121->6121/tcp, 0.0.0.0:6122->6122/tcp, 6123/tcp, 8081/tcp pinpoint-hbase /bin/sh -c ${BASE_DIR}/hba ... Up 0.0.0.0:16010->16010/tcp, 0.0.0.0:16030->16030/tcp, 0.0.0.0:2180->2181/tcp, 0.0.0.0:60000->60000/tcp, 0.0.0.0:60020->60020/tcp pinpoint-mysql docker-entrypoint.sh mysqld Up 0.0.0.0:13306->3306/tcp, 33060/tcp pinpoint-quickstart catalina.sh run Up 0.0.0.0:8000->8080/tcp pinpoint-web /usr/local/bin/start-web.sh Up 0.0.0.0:8079->8080/tcp, 0.0.0.0:9997->9997/tcp
访问
Pinpoint页面Apache Flink Daskboard
Habse页面
转载于:https://blog.51cto.com/jerrymin/2371068