Skip to content

Actuator endpoints with no operations that use selectors are not accessible when mapped to / #35426

Closed
@pavelorehov

Description

@pavelorehov

Below worked fine with Spring Boot 2.7.11 and earlier, stopped working with Spring Boot 3.

http://host:8989/metrics

{"timestamp":"2023-05-15T08:17:22.903+00:00","status":404,"error":"Not Found","path":"/metrics/"}

Tested other health endpoint with root - works as expected.

management.server.port=8989
management.server.base-path=/metrics
management.endpoints.web.base-path=/
management.endpoints.web.path-mapping.prometheus=/

Works for health:

management.server.port=8989
management.server.base-path=/metrics
management.endpoints.web.base-path=/
management.endpoints.web.path-mapping.health=/

Was asked to open in spring boot by micrometer owners:
micrometer-metrics/micrometer#3839

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions