linux cpu占用率如何看
413
2022-09-13
微服务 全链路监控工具pinpoint 安装配置pinpoint服务
(1)配置加速器,下面面配置的是镜像加速器
cat > /etc/docker/daemon.json < 重启 docker 使配置生效 systemctl daemon-reload && systemctl restart docker && systemctl status docker pinpoint 部署 我部署的是 2.0.1 版本 order,product,stock,eureka,gateway,portal进行全链路监控 [root@monitor ~]# lspinpoint-docker-2.0.1 pinpoint-docker-2.0.1.zip[root@monitor ~]# cd pinpoint-docker-2.0.1[root@monitor pinpoint-docker-2.0.1]# 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 修改 docker-compose.yml 文件的 version 版本,如 2.3,变成自己支持的版本,version: "3.6" 变成 version: "2.3" version: "2.3" 拉取镜像 [root@monitor pinpoint-docker-2.0.1]# docker-compose pullPulling pinpoint-hbase ... donePulling pinpoint-mysql ... donePulling pinpoint-web ... donePulling pinpoint-collector ... donePulling pinpoint-agent ... donePulling pinpoint-quickstart ... donePulling zoo1 ... donePulling zoo2 ... donePulling zoo3 ... donePulling jobmanager ... donePulling taskmanager ... done 启动服务 [root@monitor pinpoint-docker-2.0.1]# docker-compose up -dCreating network "pinpoint-docker-201_pinpoint" with driver "bridge"Creating pinpoint-flink-jobmanager ... doneCreating pinpoint-docker-201_zoo3_1 ... doneCreating pinpoint-docker-201_zoo1_1 ... doneCreating pinpoint-mysql ... doneCreating pinpoint-hbase ... doneCreating pinpoint-docker-201_zoo2_1 ... doneCreating pinpoint-flink-taskmanager ... doneCreating pinpoint-web ... doneCreating pinpoint-collector ... doneCreating pinpoint-agent ... doneCreating pinpoint-quickstart ... done 查看对应的服务是否启动 [root@monitor pinpoint-docker-2.0.1]# 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:9991->9991/tcp,:::9991->9991/tcp, 0.0.0.0:9991->9991/udp,:::9991->9991/udp, 0.0.0.0:9992->9992/tcp,:::9992->9992/tcp, 0.0.0.0:9993->9993/tcp,:::9993->9993/tcp, 0.0.0.0:9994->9994/tcp,:::9994->9994/tcp, 0.0.0.0:9995->9995/tcp,:::9995->9995/tcp, 0.0.0.0:9995->9995/udp,:::9995->9995/udp, 0.0.0.0:9996->9996/tcp,:::9996->9996/tcp, 0.0.0.0:9996->9996/udp,:::9996->9996/udp pinpoint-docker-201_zoo1_1 /docker-entrypoint.sh zkSe ... Up 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker-201_zoo2_1 /docker-entrypoint.sh zkSe ... Up 2181/tcp, 2888/tcp, 3888/tcp pinpoint-docker-201_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,:::8081->8081/tcp pinpoint-flink-taskmanager /docker-entrypoint.sh task ... Up 0.0.0.0:19994->19994/tcp,:::19994->19994/tcp, 0.0.0.0:6121->6121/tcp,:::6121->6121/tcp, 0.0.0.0:6122->6122/tcp,:::6122->6122/tcp, 6123/tcp, 8081/tcp pinpoint-hbase /bin/sh -c ${BASE_DIR}/hba ... Up 0.0.0.0:16010->16010/tcp,:::16010->16010/tcp, 0.0.0.0:16030->16030/tcp,:::16030->16030/tcp, 0.0.0.0:2180->2181/tcp,:::2180->2181/tcp, 0.0.0.0:60000->60000/tcp,:::60000->60000/tcp, 0.0.0.0:60020->60020/tcp,:::60020->60020/tcp pinpoint-mysql docker-entrypoint.sh mysqld Up 0.0.0.0:13306->3306/tcp,:::13306->3306/tcp, 33060/tcp pinpoint-quickstart catalina.sh run Up 0.0.0.0:8000->8080/tcp,:::8000->8080/tcp pinpoint-web /usr/local/bin/start-web.sh Up 0.0.0.0:8079->8080/tcp,:::8079->8080/tcp, 0.0.0.0:9997->9997/tcp,:::9997->9997/tcp 找到 pinpoint-web,可看到在宿主机绑定的端口是 8079, 在浏览器访问 ip:8079 即可访问 pinpoint 的 web ui 界面
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~