1,811 questions
Advice
0
votes
0
replies
11
views
Spring Boot Actuator additional-path usage for endpoints
In Spring Boot Actuator, when setting a separate management server port to expose actuator endpoints only within an AKS cluster, the health endpoint can also be exposed externally using an additional-...
0
votes
1
answer
47
views
Circular Dependency Occurs in MongoDB-Based Project When Adding spring-boot-starter-actuator
When I include the spring-boot-starter-actuator dependency, my application fails to start due to a circular dependency (shown below). Removing the actuator dependency resolves the issue. Why does this ...
0
votes
0
answers
65
views
Prometheus scraping wrong url
I have a set of micro services with Spring Boot running on containers,
I'm using Eureka discovery and Spring Cloud API Gateway,
I'm trying to set Prometheus to monitor them, so my prometheus.yml looks ...
1
vote
0
answers
56
views
NewRelic: Ignore Spring Boot Actuator Transactions
We've got NewRelic integrated into Spring Boot. I don't know why but since yesterday NR identifies all requests to actuator endpoints (including the health check and prometheus endpoints that get ...
0
votes
1
answer
160
views
spring-cloud-gateway-webflux 4.3.0 Gateway Actuator not working
I have a spring-cloud-gateway-webflux service and I have enabled all the actuators but the /actuator/gateway doesn't show up so I can't view all the routes.
I am using the following dependencies:
...
0
votes
1
answer
56
views
Spring Boot Actuator 'http.server.requests' metric MIN time
The actuator endpoint /actuator/metrics/http.server.requests can exhibit this informations:
{
"name": "http.server.requests",
"baseUnit": "seconds",
"...
0
votes
1
answer
183
views
micrometer tracing exporter autoconfiguration
Is there any autoconfiguration for OtlpGrpcSpanExporter? I see OpenTelemetryAutoConfiguration class in spring boot actuator but there's no autoconfiguration for exporter. Is it necessary to define a ...
1
vote
1
answer
156
views
how to use percentiles-histogram without risk of high cardinality and human-usable buckets?
I created my own advices in springboot 1 to monitor our apps, and only now try to learn what new versions of springboot offer(currently working with 3.3.1, but will move on to later version later), ...
0
votes
1
answer
61
views
Logs of Spring Boot Docker service not accessible from Spring Boot Admin
I have a Spring Boot service dockerized and it registers well with Spring Boot admin. Property logging.file.name is specified in a Git repository that after service startup is retrieved from the ...
1
vote
1
answer
255
views
HttpExporter : Failed to export logs
I try to disable opentelemetry exporter in my local spring profile.
In application-local.yaml I have:
opentelemetry:
sdk:
disable: true
instrumentation:
enabled: false
exporter:
otlp:...
0
votes
0
answers
70
views
Spring Boot Admin not showing apps details
my Spring Boot Admin dashboard is not showing details about apps: no health, no JVM resources usage, no Actuators introspections... any.
Following are my configurations:
server conf:
spring.boot....
0
votes
1
answer
199
views
micrometer-registry-prometheus not showing exemplars
I would like to send metrics with exemplars using Spring Boot and Micrometer.
Part of the pom.xml:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId&...
1
vote
1
answer
231
views
spring actuator/health access denied after upgrading spring boot 3
I was updating current spring boot application version to spring boot 3, 3.4.4 to be precise, after updating the dependencies and checking out rest endpoints everything seems to be working fine, but ...
0
votes
0
answers
123
views
Why does @Async work without @EnableAsync?
I'm using Spring Boot 2.3.5.RELEASE and I noticed that @Async methods in my application are working without adding @EnableAsync in any configuration class.
After some digging, I saw a comment from ...
0
votes
1
answer
32
views
How to add health status information of dependent services in Spring Boot Actuator
I have a Spring Boot Service (service-a), which is dependent on Spring Boot services service-b, service-c. I would want to make sure that my actuator health endpoint captures the health information of ...
1
vote
0
answers
322
views
JUnit, Spring Boot 3.4.4: Error creating bean with name 'jpaMappingContext': Metamodel must not be null
I've updated the version of Spring Boot in my project to 3.4.4. And now one of the JUnit tests starts failing with the exception org.springframework.beans.BeanInstantiationException: Failed to ...
1
vote
1
answer
99
views
Observability with java spring boot actuator and micrometer annotation @Counted is ignored while @Timed works fine
Following documents and examples I try to implement @Counted and @Timed annotation based observability, basing on spring boot actuator, micrometer.
There are no build or run errors.
a method in the ...
0
votes
0
answers
54
views
Disable actuator HealthCheck for "prototype" scoped DataSource bean in app with multiple datasources
I see a couple of similar questions here but nothing works in my case. So, although it looks like a "duplicate", I hope it is not.
Problem: I have an app with multiple (actually 3) ...
0
votes
1
answer
277
views
Spring Boot: Combine multiple applications SwaggerUI?
Having about 6 Spring Boot applications with REST APIs running with Actuator and Prometheus support.
These are running on Docker, but the actuator port is not exposed.
Although we can connect each ...
0
votes
0
answers
19
views
Actuator Info endpoint fetching another API details
My info endpoint is fetching details of another API. I have a dependency of another api in one of the module.
I only have one build.properties file and one application.properties file
But somehow when ...
0
votes
0
answers
85
views
Implementing a custom Actuator endpoint using @WebEndpoint - how to return a custom status code?
We are currently migration several @RestControllerEndpoint to the framework-agnostic @WebEndpoint. The problem:
These endpoints trigger an asynchronous task, which the status code should reflect (...
0
votes
0
answers
37
views
Spring actuator : do we have a way to find the initial log4j log levels before user updation/modification
My project requires an api end point to GET the initial log levels (configured/effective) of the packages, we create a scheduler to report that package log level is modified by the specific user from ...
0
votes
1
answer
82
views
Java integration test failing on WrongTypeOfReturnValue
I have this test:
@Test
public void healthCorollaUp() throws Exception {
ResponseEntity<CorollaResponse> responseEntity = new ResponseEntity<>(null, HttpStatus.OK);
when(...
3
votes
2
answers
1k
views
Logging in a Spring Boot app with OpenTelemetry
Using Spring Boot 3.4.2, I want to configure logs export in opentelemetry format with Spring Actuator configuration. Example properties:
management.otlp.logging.export.enabled=true
management.otlp....
0
votes
1
answer
198
views
Using /actuator/health when Spring application is deployed on k8s?
I wonder what the drawbacks of the Spring Boot application are that it has a /health actuator endpoint defined as liveness and readiness probes.
Are there any issues related to graceful shutdown or ...
0
votes
1
answer
317
views
Distributing an opinionated spring security configuration
My goal is to provide a starter (spring boot 3.4) that brings an out-of-the-box experience. In essence it is a collection of authentication providers and converters, configuration of the ...
1
vote
1
answer
40
views
Unit Test for Spring actuator endpoint extension
I have a custom extension of the info endpoint where I would like to test the returned values:
@Component
@EndpointWebExtension(endpoint = InfoEndpoint.class)
public class InfoWebEndpointExtension {
...
2
votes
1
answer
377
views
Spring actuator SanitizingFunction bean is not used
Spring boot version 2.7.3
I need to mask all the fields containing 'uri' string in actuator/env response.
According to documentation:
To take control over the sanitization, define a SanitizingFunction ...
0
votes
1
answer
311
views
* jvm_ * metrics are missing when using spring boot 2.5.6 version
I’m using a Spring Boot project with version 2.5.6 and springfox-boot-starter version 3.0.0. My project also includes a WebSecurityConfig class that extends WebSecurityConfigurerAdapter and implements ...
0
votes
0
answers
752
views
How to configure /readiness and /liveness probes correctly in Spring Boot?
I am configuring my Spring Boot 3.0.2 application with this setting:
management.endpoint.health.probes.enabled=true
Calling /actuator/health I am getting the following result:
"livenessState"...
2
votes
1
answer
263
views
Springboot Isolate readiness from liveness probe
Is there a way in Springboot to isolate the readiness probe computation from the liveness probe computation?
Typically the readiness probe has more risk to take long, e.g. when database connectivity ...
0
votes
0
answers
144
views
Turn off logging for Actuator endpoints in Spring Boot
In my application.properties I have configured the logging as follows:
logging.level.org.springframework.web=TRACE
This is by intention and should stay as it is. When an Actuator endpoint (such as /...
0
votes
0
answers
32
views
Spring-boot / Docker make actuator accessible at the root before the context
I've been struggling for a while to find a solution to the following problem:
I have a SpringBoot web application running in a Docker container.
The context is not at the root, it is of type:
server....
0
votes
0
answers
43
views
What is count param in spring boot actuator healthcheck?
I've setup my app with actuator, and I see that it's running the following:
select count(?) from systables
What is the ? in this? I would assume it's not *.
Is there a way I can customize this query ...
0
votes
1
answer
37
views
What is the field "description" in Spring Boot Actuator Health Endpoint
I am currently developing an application that is running on Spring Boot 2.7.5 and am looking into the Actuator endpoints.
When I call /actuator/health I get the following response:
{
"...
2
votes
1
answer
414
views
Why is one service not handling /actuator/health, but another very similar service is?
Our team maintains a large number of architecturally similar SpringBoot services. They are mostly using SpringBoot 3.2.5. We configure the "health" actuator for use within our Kubernetes ...
0
votes
1
answer
242
views
@RefreshScope beans are recreated, but property used from application.properties is not refreshed
I have a project in which I want to update property from application.properties in runtime, and to recreate the beans that depend on configuration and configuration bean itself with the new/updated ...
1
vote
1
answer
1k
views
Spring Boot 3.3.4 Healthcheck - [Error 59] no such command: 'hello'
I migrated an app from Springboot version 3.3.3 to version 3.3.4.
All unit test run correctly except the unit test Healthcheck (/actuator/health).
This test was running with no problem on Spring boot ...
-1
votes
1
answer
384
views
Spring Boot Admin : how to register a micro server into admin server without discovery in kubernetes
i have a spring boot admin server in my kubernetes cluster and i want to register a micro server into spring boot admin
they are in the same namespace and i already use svc name to set the client url
...
0
votes
1
answer
907
views
Spring Cloud Gateway, bypass local actuator endpoints
I have Spring Cloud gateway setup to route traffic to various backend services. I also have a fallback route that forwards any unmatched routes to some static content. It works great.
Now I need to ...
0
votes
1
answer
121
views
Is there a need to throttle spring boot actuator health endpoint
I have created a spring boot app having various endpoints secured and throttling is enabled on them like if more then certain calls will come in a minute it will give 429.
My /health endpoint doesn't ...
1
vote
1
answer
809
views
404 error when accessing actuator/prometheus endpoint
In my spring boot application. I added following dependencies:
spring-boot-starter-actuator
micrometer-registry-prometheus
In application.properties file I added following code:
management.endpoint....
0
votes
0
answers
189
views
Java mail sender integration test with Green Mail failing in spring boot after installing spring boot actuator
I have been working on a project for quite long time. I had written quite a lot of integration tests(39). All of the tests used to pass. Recently I decided to add spring actuator starter project. But ...
1
vote
1
answer
151
views
How to implement a custom composite meter and natively integrate it into Micrometer and Spring Boot Actuator?
I want to implement a new type of meter (HeartbeatMeter) to track the liveness of a heartbeat from an upstream source.
Interface would be very simple, something like:
private interface ...
0
votes
0
answers
57
views
How to set Client idle connection timeout in IBM MQ? [duplicate]
I am building a springboot application with a connection to an IBM MQ server which I don't have control over. I also monitor my app using the actuator health. The actuator uses the default ...
1
vote
1
answer
1k
views
j.l.IllegalStateException: No Scope registered for scope name 'refresh'
I'm trying to use @RefreshScope at @Service layer to dynamically change the value of a property.My application successful started, however after make a request then getting this error
j.l....
1
vote
1
answer
585
views
Integrate k8s secret live reload with spring-boot 3 and spring-cloud-k8s-config-watcher
I am trying to integrate the live reloading of k8s secrets in my spring boot 3 application.
My setup is as follows:
I have a Java 21 application that is being build as a Docker image containing an ...
2
votes
0
answers
277
views
Configure Spring Boot to expose all Actuator endpoints on one port while serving Micrometer metrics on a different port
I'm working on a Spring Boot application where I want to achieve the following:
All Actuator endpoints (like /actuator/health, /actuator/info, etc.) should be exposed on the default application port (...
0
votes
1
answer
176
views
Spring cloud gateway - Filter arguments not updated with refresh or gateway refresh endpoints
We using custom gateway filter for spring cloud gateway. The configuration looks like below:
Filter class:
@Component
public class CustomFilter extends AbstractGatewayFilterFactory<CustomFilter....
2
votes
1
answer
499
views
Actuator health probes endpoint responding differently when showing details
I am trying to analyse whether or not to use "/actuator/health/liveness" and "/actuator/health/readiness" instead of "/actuator/health". I mainly used https://spring.io/...