1,810 questions
0
votes
1
answer
45
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 ...
1
vote
0
answers
53
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
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",
"...
1
vote
1
answer
145
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), ...
1
vote
1
answer
251
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
1
answer
192
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&...
0
votes
0
answers
122
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 ...
1
vote
0
answers
317
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 ...
0
votes
0
answers
51
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
0
answers
15
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
33
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 ...
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
313
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 ...
2
votes
1
answer
367
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
0
answers
740
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"...
0
votes
0
answers
134
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
42
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 ...
2
votes
1
answer
407
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 ...
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 ...
0
votes
1
answer
890
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 ...
1
vote
1
answer
804
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....
1
vote
1
answer
140
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 ...
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....
2
votes
0
answers
275
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 (...
2
votes
1
answer
496
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/...