pinpoint 容器安装

x33g5p2x  于2021-12-21 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(530)

pinpoint是开源在github上的一款APM监控工具,它是用Java编写的,用于大规模分布式系统监控。它对性能的影响最小(只增加约3%资源利用率),安装agent是无侵入式的,只需要在被测试的Tomcat中加上3句话,打下探针,就可以监控整套程序了。

因为是选择用docker来安装pinpoint,所以要先安装好docker以及docker-compose

yum update -y
yum install docker epel-release python-pip -y
pip install --upgrade pip
pip install docker-compose

在安装好docker后,修改docker的daemon.json,让docker从国内的阿里云拉取镜像,提高下载速度.

[root@localhost pinpoint-docker]# cat /etc/docker/daemon.json
{"registry-mirrors": ["http://579fe187.m.daocloud.io","https://pee6w651.mirror.aliyuncs.com"]}

启动docker并设置开机自启

systemctl enable docker
systemctl start docker

安装pinpoint(docker)
拉取pinpoint,我拉取的是目前最稳定的版本2.0.3,要是拉取以前的版本也可以在官网上自行选择

git clone https://github.com/naver/pinpoint-docker.git

进入文件夹

[root@localhost pinpoint]# cd pinpoint-docker/

启动服务

docker-compose pull && docker-compose up -d

查看启动的容器

[root@localhost pinpoint-docker]# docker ps
CONTAINER ID        IMAGE                                     COMMAND                  CREATED             STATUS              PORTS                                                                                                                            NAMES
0149bce36f21        pinpointdocker/pinpoint-web:2.0.3         "/usr/local/bin/star…"   14 minutes ago      Up 14 minutes       0.0.0.0:9997->9997/tcp, 0.0.0.0:8079->8080/tcp                                                                                   pinpoint-web
fe04f4ab9e8d        pinpointdocker/pinpoint-mysql:2.0.3       "docker-entrypoint.s…"   14 minutes ago      Up 14 minutes       3306/tcp, 33060/tcp, 0.0.0.0:13306->13306/tcp                                                                                    pinpoint-mysql
4061e3430f18        pinpointdocker/pinpoint-quickstart        "catalina.sh run"        18 minutes ago      Up 18 minutes       0.0.0.0:8000->8080/tcp                                                                                                           pinpoint-quickstart
fa64e8b9afe1        pinpointdocker/pinpoint-agent:2.0.3       "/usr/local/bin/conf…"   18 minutes ago      Up 18 minutes                                                                                                                                        pinpoint-agent
df5c10be66a6        pinpointdocker/pinpoint-collector:2.0.3   "/usr/local/bin/star…"   18 minutes ago      Up 18 minutes       0.0.0.0:9991->9991/udp, 8080/tcp, 0.0.0.0:9991-9996->9991-9996/tcp, 0.0.0.0:9995-9996->9995-9996/udp                             pinpoint-collector
c6bc4b0873ef        flink:1.3.1                               "/docker-entrypoint.…"   18 minutes ago      Up 18 minutes       6123/tcp, 0.0.0.0:6121-6122->6121-6122/tcp, 0.0.0.0:19994->19994/tcp, 8081/tcp                                                   pinpoint-flink-taskmanager
9893bf2e6eef        flink:1.3.1                               "/docker-entrypoint.…"   18 minutes ago      Up 18 minutes       6123/tcp, 0.0.0.0:8081->8081/tcp                                                                                                 pinpoint-flink-jobmanager
8dc7ee6d82bb        zookeeper:3.4                             "/docker-entrypoint.…"   18 minutes ago      Up 18 minutes       2181/tcp, 2888/tcp, 3888/tcp                                                                                                     pinpoint-docker_zoo2_1
4fbc5d1d0ac5        pinpointdocker/pinpoint-hbase:2.0.3       "/bin/sh -c '${BASE_…"   18 minutes ago      Up 18 minutes       0.0.0.0:16010->16010/tcp, 0.0.0.0:16030->16030/tcp, 0.0.0.0:60000->60000/tcp, 0.0.0.0:60020->60020/tcp, 0.0.0.0:2180->2181/tcp   pinpoint-hbase
3f7356dfbbde        zookeeper:3.4                             "/docker-entrypoint.…"   18 minutes ago      Up 18 minutes       2181/tcp, 2888/tcp, 3888/tcp                                                                                                     pinpoint-docker_zoo3_1
db0d8ff7c2ac        zookeeper:3.4                             "/docker-entrypoint.…"   18 minutes ago      Up 18 minutes       2181/tcp, 2888/tcp, 3888/tcp                                                                                                     pinpoint-docker_zoo1_1

访问web
ip:8079

访问hbase
ip:16010

两个都访问成功,安装成功

相关文章