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 application context begins shutting down: And after that, I repeatedly get the following exception:
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 mapping for /error, so you are seeing this as a fallback. Those properties include: I need to use the management
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 down the context is the answer to your question: Spring includes only the controller into its context skipping everything else. Try to include
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 do something like: Consumes
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 such operation happens over 5
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 …
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 …
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 <…
Enable logging in spring boot actuator health check API
I am using Spring boot Actuator API for my project the having a health check endpoint, and enabled it by : Mentioned here Now I want to enable log in my application log file when ever the status of this above /healthcheck fails and print the entire response from this end point. What is the correct way to achieve this?