I have a spring boot application that's packaged as a .war
file and running on a wildfly instance.
I just recently added the micrometer
and actuator
dependencies to my pom file:
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
When I deploy the app to wildfly and it's up and running I can access the default endpoints /info
and /health
without any problems on the following urls:
http://localhost:8080/myApp/info
http://localhost:8080/myApp/health
But no matter what I do I cannot access /actuator
or any of the other endpoints.
I'm currently using an external config file that maps custom properties to a Config class in my app. That config file also contains spring boot properties like these that are not mapped to the config class:
###################################################################
# Spring Boot properties
###################################################################
spring.http.multipart.max-file-size=500Mb
spring.http.multipart.max-request-size=500Mb
logging.level.org.springframework.web=DEBUG
logging.level.org.springframework.web.filter.CommonsRequestLoggingFilter=DEBUG
server.error.whitelabel.enabled=false
Those parameters are picked up by spring boot without any problems.
I've also added the following actuator properties to the same file:
###################################################################
# Actuator Properties
###################################################################
management.endpoints.web.exposure.include=*
management.endpoint.prometheus.enabled=true
management.endpoint.metrics.enabled=true
management.endpoint.status.enabled=true
management.endpoint.prometheus.show-details=always
management.endpoint.metrics.show-details=always
management.endpoint.status.show-details=always
management.endpoint.health.show-details=always
These properties make no difference, I can only ever access /info
and /health
What am I missing?
Edit: There is currently no security module in this application.