Docker builds the method for pinpoint deployment

  • 2020-10-23 20:23:15
  • OfStack

Pinpoint

1. Install pinpoint-server

Download mirror


docker pull yous/pinpoint

Look at mirror


docker images

Start the container


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

Enter the docker bash


docker exec -it pinpoint /bin/bash

Start the hbase


quickstart/bin/start-hbase.sh

Initialize table


quickstart/bin/init-hbase.sh

Start Pinpoint Daemons


Collector: quickstart/bin/start-collector.sh
Web UI: quickstart/bin/start-web.sh
TestApp: quickstart/bin/start-testapp.sh

Port mapping (container is running)


agent: pinpoint.config
collection: pinpoint-collector.properties
#  The container of 29994 Port mapping to docker The host 29994 port 
iptables -t nat -A DOCKER -p tcp --dport 29994 -j DNAT --to-destination 172.17.0.35:29994
iptables -t nat -A DOCKER -p udp --dport 29995 -j DNAT --to-destination 172.17.0.35:29995
iptables -t nat -A DOCKER -p udp --dport 29996 -j DNAT --to-destination 172.17.0.35:29996

Check the process


docker ps

Check the port


docker port pinpoint

2. Configuration pinpoint - agent

Modify pinpoint config


docker images
0

Add the tomcat boot parameter


docker images
1

3. Browse the interface

Web UI: http://localhost:28080

TestApp: http://localhost:28081

4. Refer to websites

https://hub.docker.com/r/yous/pinpoint/


Related articles: