spring-projects / spring-projects/spring-boot
Tomcat and HTTP metrics missing if managment.server.port is set to a different port than server.port
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
For a Spring Boot 2.1.x application where I set server.port and management.server.port to different ports I only see Tomcat and HTTP request metrics for server.port on /actuator/prometheus endpoint.
I would expect to see Tomcat metrics for both ports and HTTP metrics for requests on both ports.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in a Spring Boot 2.1.x application with different server.port and management.server.port values, then query the /actuator/prometheus endpoint. Trace how Tomcat and HTTP request metrics are registered for each port; done means the endpoint exposes Tomcat metrics for both ports and HTTP metrics for requests on both.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100