pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.28k stars 3.75k forks source link

How to change Pinpoint port 8080 #11132

Open Kiwon-S opened 2 weeks ago

Kiwon-S commented 2 weeks ago

The version I am using is 2.2.2 How to change Pinpoint port 8080 to another port Configuration file location

intr3p1d commented 2 weeks ago

You can change the server port just like any typical Spring application using the following commandline option: -Dserver.port=8080.

Alternatively, you can modify the settings in the following configuration file: web https://github.com/pinpoint-apm/pinpoint/blob/v2.2.2/web/src/main/resources/application.yml#L7-L8 collector https://github.com/pinpoint-apm/pinpoint/blob/v2.2.2/collector/src/main/resources/application.yml#L7-L8

Kiwon-S commented 2 weeks ago

Thank you. I'd like to buy some beef. I succeeded in changing the port by adding an option to the command line. I changed the problematic 8080 port, but I also need to change the 9000 port that Pinpoint uses, which is the last problem to be solved. Where should I change this? I try to change port 9000, but there are a lot of configuration files, but I can't see them all even when I look for them.

Kiwon-S commented 2 weeks ago

After starting collceter and web, netstat -anltp | When checking with the grep 9000 command, there is nothing floating around.

emeroad commented 2 weeks ago

https://pinpoint-apm.gitbook.io/pinpoint/getting-started/installation Please search the official documentation first before asking a question.

Kiwon-S commented 2 weeks ago

Before answering, please check what the question is. I'm using version 2.2.2 and it's my first time dealing with it, so I'm at a loss. I'm doing a lot of searching, and I don't want to be criticized for blaming others or speculating that I didn't try hard.

intr3p1d commented 2 weeks ago

Are you asking about the 9000 series ports used for communication between the agent and the collector?

In the collector, you can find these settings in the following file: pinpoint-collector-grpc.properties

In the agent, these settings are located in the following file: pinpoint-root.config

The agent and metadata share a port, while stat and span use separate ports. Therefore, three different ports are used in total, and it is essential to ensure that each port is correctly matched.

For more detailed information on these settings, please refer to the manual: