spring-projects / spring-projects/spring-boot

Tomcat and HTTP metrics missing if managment.server.port is set to a different port than server.port

Open
#15,673 8 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.