Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change Pinpoint port 8080 #11132

Open
Kiwon-S opened this issue Jun 5, 2024 · 6 comments
Open

How to change Pinpoint port 8080 #11132

Kiwon-S opened this issue Jun 5, 2024 · 6 comments

Comments

@Kiwon-S
Copy link

Kiwon-S commented Jun 5, 2024

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

@intr3p1d
Copy link
Contributor

intr3p1d commented Jun 7, 2024

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
Copy link
Author

Kiwon-S commented Jun 7, 2024

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
Copy link
Author

Kiwon-S commented Jun 7, 2024

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

@emeroad
Copy link
Member

emeroad commented Jun 7, 2024

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

@Kiwon-S
Copy link
Author

Kiwon-S commented Jun 7, 2024

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
Copy link
Contributor

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

  • collector.receiver.grpc.agent.port
  • collector.receiver.grpc.stat.port
  • collector.receiver.grpc.span.port

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

  • profiler.transport.grpc.agent.collector.port
  • profiler.transport.grpc.metadata.collector.port
  • profiler.transport.grpc.stat.collector.port
  • profiler.transport.grpc.span.collector.port

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants