微服务 全链路监控工具pinpoint 安装配置pinpoint服务
(1)配置加速器,下面面配置的是镜像加速器
cat > /etc/docker/daemon.json <<EOF
{
"registry-mirrors":["https://rsbud4vc.mirror.aliyuncs.com","https://registry.dockercn.com","https://docker.mirrors.ustc.edu.cn","https://dockerhub.azk8s.cn","http://hubmirror.c.163.com","http://qtid6917.mirror.aliyuncs.com"],
"exec-opts":["native.cgroupdriver=systemd"],
"log-driver":"json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver":"overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
] }
EOF
[root@monitor ~]# cat /etc/docker/daemon.json
{
"registry-mirrors":["https://rsbud4vc.mirror.aliyuncs.com","https://registry.dockecn.com","https://docker.mirrors.ustc.edu.cn","https://dockerhub.azk8s.cn","http://humirror.c.163.com","http://qtid6917.mirror.aliyuncs.com"],
"exec-opts":["native.cgroupdriver=systemd"],
"log-driver":"json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver":"overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
] }
重启 docker 使配置生效
systemctl daemon-reload && systemctl restart docker && systemctl status docker
pinpoint 部署
我部署的是 2.0.1 版本
order,product,stock,eureka,gateway,portal进行全链路监控
[root@monitor ~]# ls
pinpoint-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]# ls
docker-compose.yml pinpoint-agent pinpoint-flink pinpoint-quickstart Readme.md
docs pinpoint-agent-attach-example pinpoint-hbase pinpoint-web
License 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 pull
Pulling pinpoint-hbase ... done
Pulling pinpoint-mysql ... done
Pulling pinpoint-web ... done
Pulling pinpoint-collector ... done
Pulling pinpoint-agent ... done
Pulling pinpoint-quickstart ... done
Pulling zoo1 ... done
Pulling zoo2 ... done
Pulling zoo3 ... done
Pulling jobmanager ... done
Pulling taskmanager ... done
启动服务
[root@monitor pinpoint-docker-2.0.1]# docker-compose up -d
Creating network "pinpoint-docker-201_pinpoint" with driver "bridge"
Creating pinpoint-flink-jobmanager ... done
Creating pinpoint-docker-201_zoo3_1 ... done
Creating pinpoint-docker-201_zoo1_1 ... done
Creating pinpoint-mysql ... done
Creating pinpoint-hbase ... done
Creating pinpoint-docker-201_zoo2_1 ... done
Creating pinpoint-flink-taskmanager ... done
Creating pinpoint-web ... done
Creating pinpoint-collector ... done
Creating pinpoint-agent ... done
Creating 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 界面
目录 返回
首页