Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot Actuator paths not enabled by default?

While updating my Spring Boot application to the latest build snapshot and I am seeing that none of the actuator endpoints are enabled by default. If I specify them to be enabled in application.properties, they show up.

1) Is this behavior intended? I tried searching for an issue to explain it but couldn't find one. Could somebody link me to the issue / documentation?

2) Is there a way to enable all the actuator endpoints? I often find myself using them during development and would rather not maintain a list of them inside my properties file.

like image 453
Adam Avatar asked Oct 17 '22 05:10

Adam


1 Answers

Two parts to this answer:

"Is there a way to enable all the actuator endpoints?"

Add this property endpoints.enabled=true rather than enabling them individually with endpoints.info.enabled=true, endpoints.beans.enabled=true etc

Update: for Spring Boot 2.x the relevant property is:

endpoints.default.web.enabled=true

"Is this behavior intended?"

Probably not. Sounds like you might have spotted an issue with the latest milestone. If you have a reproducible issue with a Spring Boot milestone then Spring's advice is ...

Reporting Issues

Spring Boot uses GitHub’s integrated issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:

Before you log a bug, please search the issue tracker to see if someone has already reported the problem.

If the issue doesn’t already exist, create a new issue.

like image 114
glytching Avatar answered Oct 21 '22 07:10

glytching