Spring Boot Actuator is a sub-project of Spring Boot. It adds several production grade services to your application with little effort on your part.
Questions tagged [spring-boot-actuator]
1227 questions
48
votes
2 answers
How to enable all endpoints in actuator (Spring Boot 2.0.0 RC1)
I moved to Spring Boot 2.0.0 RC1 from 1.5.10 and I am stuck with actuator in the latest version. How can I enable expose and enable all actuator endpoints?
The only endpoints that get exposed are:
{
"_links": {
"self": {
"href":…
![](../../users/profiles/6931119.webp)
Witold Kaczurba
- 7,871
- 2
- 47
- 52
38
votes
20 answers
Unable to access Spring Boot Actuator "/actuator" endpoint
I am able to access endpoints like http://localhost:8081/health, /status, /env, /metrics, /shutdown but not /actuator or /loginfo endpoints.
Getting below exception.
{"timestamp":1455929182552,"status":404,"error":"Not Found","message":"No message…
![](../../users/profiles/5953853.webp)
grkhyd
- 383
- 1
- 4
- 6
35
votes
13 answers
Spring Boot 2 - Actuator Metrics Endpoint not working
In my Spring Boot App (2.0.0.M7) application.properties I set
management.endpoint.metrics.enabled=true
However, when i hit
localhost:8080/actuator/metrics
I get 404.
Whats the solution?
![](../../users/profiles/7432865.webp)
Dachstein
- 2,752
- 3
- 26
- 42
31
votes
4 answers
How to add a custom health check in spring boot health?
![](../../users/profiles/6677551.webp)
shabinjo
- 1,183
- 1
- 13
- 17
27
votes
2 answers
How to measure service methods using spring boot 2 and micrometer
I started my first project on Spring Boot 2 (RC1). Thanks to the already good documentation this has not been to hard coming from Spring Boot 1.x.
However now that I want to integrate metrics I'm stumbeling. As far as I was able to find currently…
![](../../users/profiles/4245484.webp)
Christian Frommeyer
- 1,140
- 1
- 10
- 20
25
votes
2 answers
"httptrace" endpoint of Spring Boot Actuator doesn't exist anymore with Spring Boot 2.2.0
With Spring Boot 2.2.0 the "httptrace" Actuator endpoint doesn't exist anymore. How can I get this functionality back?
![](../../users/profiles/2891595.webp)
phip1611
- 2,860
- 3
- 20
- 32
25
votes
6 answers
Response MIME type for Spring Boot actuator endpoints
I have updated a Spring Boot application from 1.4.x to 1.5.1 and the Spring Actuator endpoints return a different MIME type now:
For example, /health is now application/vnd.spring-boot.actuator.v1+json instead simply application/json.
How can I…
![](../../users/profiles/2952093.webp)
kap
- 927
- 2
- 12
- 19
24
votes
2 answers
Spring Boot Actuator - LDAP Health Endpoint Throwing NPE
In our Spring Boot app we have are using spring-security-ldap to authenticate users that can access our app. We don't see any issues functionally with authentication, however when we hit the /authenticator/health URL, we get the following status for…
![](../../users/profiles/1798655.webp)
justbaum30
- 465
- 2
- 7
- 16
23
votes
3 answers
Add prefix to all Spring Boot actuator endpoints
Is there an easy way to add a prefix to all the Actuator endpoints?
/env -> /secure/env
/health -> /secure/health
/info -> /secure/info
...
![](../../users/profiles/1729795.webp)
codependent
- 18,032
- 17
- 110
- 225
21
votes
4 answers
Configure Spring Boot with two ports
I'm trying configure an application in Spring Boot with two differents ports, but I haven't got still.
My first aproximation has been with two controllers and I have defined a @Bean inside the two controller with container.setPort(8080);
And my…
![](../../users/profiles/3322664.webp)
nole
- 972
- 2
- 13
- 28
17
votes
3 answers
How to include JSON response body in Spring Boot Actuator's Trace?
Spring Boot Actuator's Trace does a good job of capturing input/output HTTP params, headers, users, etc. I'd like to expand it to also capture the body of the HTTP response, that way I can have a full view of what is coming in and going out of the…
![](../../users/profiles/1718213.webp)
SergeyB
- 8,363
- 3
- 31
- 45
17
votes
2 answers
Spring Boot - Change the location of the /health endpoint to /ping/me
I set the endpoints.health.path property to /ping/me. But I cannot access the endpoint using http://localhost:9000/ping/me
It only works with http://localhost:9000/health. What am I missing ?
Here is the code in app properties file.
#Configuration…
![](../../users/profiles/4735926.webp)
Nagendra Kakarla
- 791
- 3
- 7
- 16
16
votes
6 answers
Unit testing of Spring Boot Actuator endpoints not working when specifying a port
recently I changed my spring boot properties to define a management port.
In doing so, my unit tests started to fail :(
I wrote a unit test that tested the /metrics endpoint as follows:
@RunWith…
![](../../users/profiles/2285809.webp)
WHGIBBO
- 169
- 1
- 1
- 7
16
votes
1 answer
how to get metrics from spring-boot-actuator programmatically?
we have a spring application in production. It is NOT Spring-boot. I found this post on how to use spring-boot-actuator in a non-spring-boot application.
However, the requirement for us is to aggregate the data from /metrics endpoint and do some…
![](../../users/profiles/1988876.webp)
brain storm
- 25,842
- 54
- 187
- 349
14
votes
6 answers
Spring Boot Actuator Endpoints security doesn't work with custom Spring Security Configuration
This is my Spring Boot 1.5.1 Actuator application.properties:
#Spring Boot Actuator
management.contextPath: /actuator
management.security.roles=R_0
This is my WebSecurityConfig:
@Configuration
@EnableWebSecurity
public class WebSecurityConfig…
![](../../users/profiles/1219755.webp)
alexanoid
- 19,599
- 35
- 160
- 321