Questions tagged [spring-actuator]
58 questions
4
votes
3 answers
Getting 404 Error when URL contains double slash after Spring Boot 2.5 to 2.6 migration
The following URL used to return 200 with Spring Boot 2.5
http://localhost:8080//actuator/health
After upgrading to 2.6 it no longer works and returns 404 Not Found
I spotted the error because some of the project's integration tests were failing…

kirshiyin
- 141
- 1
- 9
4
votes
3 answers
Spring Boot Kafka - Kafka metrics not available in /actuator/prometheus
I would like to monitor Kafka metrics but unfortunately nothing related to Kafka is present under /actuator/prometheus endpoint. Is anything missing in my setup?
Application dependencies: Kotlin 1.4.31, Spring Boot 2.3.9, Spring Kafka 2.6.7, Reactor…

Pawel
- 466
- 1
- 7
- 20
3
votes
3 answers
How to change context path of spring-boot actuator?
I created a docker container of my spring-boot application with actuator endpoint enabled. Assuming the container runs on port 8080, it is accessible at localhost:8080/actuator, which exposes the endpoints as follows:
{
"_links": {
…

membersound
- 81,582
- 193
- 585
- 1,120
3
votes
0 answers
How to intercept actuator health request when actuator health is running on a different port
I am working on a Spring Boot project where actuator health is configured on port 8090 where as application on 8080.
I would like to intercept incoming actuator health requests in order to customize it.
Tried adding an interceptor as below:
public…

Prasant
- 41
- 1
3
votes
0 answers
Mapping actuator endpoints outside of base path
I try to achieve the following:
in my application, the health endpoint should be mapped to /health all the other endpoints however should be mapped to /actuator/**.
From the documentation, I understand that for mapping health to a top level path, I…

Holger Partsch
- 31
- 1
3
votes
1 answer
Integrate Spring Boot Actuator with New Relic
I am trying to integrate New Relic with Spring Boot actuator. Most of the tutorials and response in StackOverflow itself suggest to use New Relic Java Agent but as per Spring Boot documentation installing Java Agent is not mandatory (unless I…

nicholasnet
- 2,117
- 2
- 24
- 46
2
votes
1 answer
spring boot 2.7.0 doesn't expose http.server.request metrics
I'm using Spring boot 2.7.0 and I'm trying to expose the http.server.request metrics so I can scrape it in Prometheus but it's not working.
My application.yml properties look like this:
management:
endpoint:
health:
probes:
…

Iman Ahrari
- 63
- 7
2
votes
2 answers
How to point a single spring actuator endpoint to the root ("/")
I have a requirement to expose a health endpoint on the root path on the specific port.
However, root path is reserved for the actuator endpoints overview and I could not find a way to overwrite that overview functionality with the specific endpoint…

santik
- 346
- 1
- 12
2
votes
0 answers
In Spring Boot how to migrate from CompositeHealthIndicator & HealthAggregator to CompositeHealthContributor & StatusAggregator?
In a Spring Boot 2.2 application I have created a CompositeHealthIndicator combined with a HealthAggregator like this:
CompositeHealthIndicator healthIndicator(Map healthIndicators){
var aggregator = new…

Harold L. Brown
- 8,423
- 11
- 57
- 109
2
votes
0 answers
How to selectively add port for a specific actuator url?
management.endpoints.web.exposure.include: "health, prometheus, metrics, asgHealth, slaFunc, slaAvail"
management.endpoint.metrics.enabled: true
management.endpoint.prometheus.enabled: true
management.metrics.export.prometheus.enabled: true
This is…

kingkong
- 107
- 3
- 9
2
votes
1 answer
Confusion about micrometer metrics - Isn't the gauge supposed to calculate the value automatically just before it is submitted?
I am exploring micrometer and aws cloudwatch. I think there is some understanding gap -
I've create a gauge which is supposed to return the number of connections being used in a connection pool.
public MetricService(CloudWatchConfig config) {
…

Bhushan Karmarkar
- 625
- 7
- 22
2
votes
1 answer
Spring Boot 2.2 Management Endpoints not working with external Jetty
After migrating from spring boot 2.0.4 to Spring boot 2.2.13 with management port different than the server port, the management endpoints stopped working. it looks like the different management port itself is not opened for listening.
while it does…

Berry Tzakala
- 21
- 4
2
votes
0 answers
Spring actuator error out the heath check during the startup : RedisReactiveHealthIndicator : Redis health check failed
We are seeing the below error after the spring boot upgrade to 2.2.11.RELEASE. I think the first health check if failing with the below error but when I invoke the health endpoint i see that health check is success.
2020-12-28 05:42:08.840 WARN 1…

Vivekanad Y
- 21
- 3
2
votes
1 answer
How to set password on actuator endpoints in spring cloud gateway
I use spring cloud gateway HoxtonSR8, spring boot 2.3.4 and spring actuator
org.springframework.boot
spring-boot-starter-actuator
I want to set password…

Artemii Kurilko
- 65
- 2
- 9
2
votes
2 answers
how can I get registered micro services by using netflix-eureka
I registered many microservices using Netflix's Eureka, and also I'm using Spring Cloud Config. However, when I updated the application.properties I need to restart the application for the new properties to be applied.
Restarting the application is…

Yong D
- 81
- 7