Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How Docker builds pinpoint deployment

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "Docker how to build pinpoint deployment". The content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn this article "Docker how to build pinpoint deployment".

Pinpoint

1. Install pinpoint-server

download mirror

docker pull yous/pinpoint

view the image

docker images

start the container

docker run -d --name=pinpoint -p 28080-28082:28080-28082 --cap-add SYS_PTRACE yous/pinpointdocker run -i -t --name=pinpoint -p 28080-28082:28080-28082 --cap-add SYS_PTRACE yous/pinpoint:latest bash

Enter docker bash

docker exec -it pinpoint /bin/bash

Start hbase

quickstart/bin/start-hbase.sh

Initialize the table

quickstart/bin/init-hbase.sh

Start Pinpoint Daemons

Collector: quickstart/bin/start-collector.shWeb UI: quickstart/bin/start-web.shTestApp: quickstart/bin/start-testapp.sh

Port mapping (container already running)

agent: pinpoint.configcollection: pinpoint-collector.properties# Map container port 29994 to docker host port 29994 iptables -t nat -A DOCKER -p tcp --dport 29994 -j DNAT --to-destination 172.17.0.35:29994iptables -t nat -A DOCKER -p udp --dport 29995 -j DNAT --to-destination 172.17.0.35:29995iptables -t nat -A DOCKER -p udp --dport 29996 -j DNAT --to-destination 172.17.0.35:29996

viewing process

docker ps

view the port

docker port pinpoint

2. Configure pinpoint-agent

Modify pinpoint.config

[ip] profiler.collector.ip=192.168.100.106[tcp port] profiler.collector.tcp.port=29994[udp span port] profiler.collector.span.port=29996[udp stat port] profiler.collector.stat.port=29995

Add tomcat startup parameters

Development environment: [IDEA VM option]-javaagent:/home/linxiaojun/Public/software/tools/pinpoint-agent/pinpoint-bootstrap-1.6.1.jar -Dpinpoint.agentId=1001 -Dpinpoint.applicationName=just-edu Production Environment: [Tomcat]CATALINA_OPTS=-javaagent:/home/linxiaojun/Public/software/tools/pinpoint-agent-1.6.1/pinpoint-bootstrap-1.6.1.jar -Dpinpoint.agentId=1001 -Dpinpoint.applicationName=just-edu

3. browsing interface

Web UI: http://localhost:28080

TestApp: http://localhost:28081

That's all for Docker How to Build Pinpoint Deployment, thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report