I’m currently developing a Spring-based web platform which makes use of several scheduled processes that access a central database. I wanted to introduce actuators for shutdown and restart. However, I am experiencing an issue: even though the shutdown request is accepted with a 200 response, the applica…
Tag: spring-boot-actuator
management.endpoint.health.group.readiness.include=* bug – Spring Boot Actuator
A bug in Spring Boot Actuator exists whereby if certain properties are used, management.endpoint.health.probes.add-additional-paths=true doesn’t work in exposing the readiness endpoint at /readyz and the liveness endpoint at /livez. You get a whitelabel error page. This application has no explicit mappi…
No qualifying bean of type ‘org.springframework.boot.actuate.health.HealthEndpoint’ in controller test
I wrote a controller which combines actuator info. In my test I get an error No qualifying bean of type ‘org.springframework.boot.actuate.health.HealthEndpoint’. How can I actiavate default spring actuator beans in controller test(@SpringBootTest/@WebMvcTest)? Answer I guess I’m narrowing do…
Spring Boot Actuator – Get your own /info data
Is there a way to get your own /info response from the service? I am having one service that is exposed to frontend and I would like to aggregate /info responses from all of the internal services, and also add my own. However, the only option to get my own data is to call myself … And I would like
ActiveMQ batch consumer
I have a requirement to consume the messages from the ActiveMQ topic and persist them in mongo. I am wondering if there is a way/configuration for consuming the messages in batch from the topic instead of reading messages one by one and making a DB call for every message. I am imagining the end solution will …
Aggregate metric with unique id over defined time period in micrometer?
In spring-boot metrics ( with micromter and prometheous ) I can get no of log events for each threshold as follows. This shows aggregation for each log level for whole application time. I want similar custom metrics but aggregate over defined time period. Ex: I have unique ID for operation and I want no of su…
What package is the actuator base path stored?
I am looking to log all of my Spring-Boot project’s request. My pointcuts work fine for my programming, and I can get the sub paths, but not the base actuator path. com.example.demo…(..) – This works for my programming org.springframework.boot.actuate…(..) – This works for paths …
Consul Health indicator not showing in SpringBoot’ actuator health endpoint
I have a SpringBoot based web application that exposes a consul health indicator bean. The bean is correctly created and initialized by springboot’s autoconfiguration, yet, the indicator is not showing in the actuator health endpoint despite the fact that the associated configuration property “man…
Spring actuator ‘/auditevents’ endpoint returns 404
I am getting a 404 error when invoking /actuator/auditevents endpoint. Upon closer look, I see that available endpoint listing doesn’t include /auditevents endpoint. pom.xml dependencies application.properties management.endpoints.web.exposure.include=* http://localhost:8080/actuator output Spring-boot …
Why is the shutdown endpoint not enabled in my application?
I am trying to add a shutdown endpoint actuator/shutdown in my Spring application as explained in this tutorial so that I can gracefully shutdown the application using a call like curl -X POST localhost:8080/actuator/shutdown. I added to my pom.xml and to src/main/resources/application.yaml. But when I run cu…