Comments (2)
This is a little confusing, but what's happening here is when you declare the following:
management.endpoint.health.group.readiness.additional-path=server:/readyz
management.endpoint.health.group.liveness.additional-path=server:/livez
Spring Boot is creating two new groups called readiness
and liveness
which by default include all health indicators. If you want to only include the liveness and readiness probes you have two options. You can either set the following property to create /readyz
and /livez
additional paths:
management.endpoint.health.probes.add-additional-paths=true
or you can update the properties to include the correct health indicators:
management.endpoint.health.group.readiness.include=readinessState
management.endpoint.health.group.readiness.additional-path=server:/readyz
management.endpoint.health.group.liveness.include=livenessState
management.endpoint.health.group.liveness.additional-path=server:/livez
from spring-boot.
Flagging for a team discussion since I wonder if we should do more to improve things. Perhaps if management.endpoint.health.probes.enabled=true
is set and management.endpoint.health.group.liveness
doesn't change the include or exclude we should keep the probe defaults.
from spring-boot.
Related Issues (20)
- Log4j2LoggingSystem pollutes Log4j2's environment with a SpringEnvironmentPropertySource that is never removed
- Log4j2LoggingSystem pollutes Log4j2's environment with a SpringEnvironmentPropertySource that is never removed
- Flyway is looking for actual url while building the application HOT 1
- Spring hibernate is throwing java.lang.NoClassDefFoundError: javax/transaction/SystemException HOT 1
- ClientObservationConventionAdapter overwrites WebClient request attributes HOT 2
- Upgrade to Awaitility 4.2.1
- Upgrade to Brave 6.0.3
- Upgrade to Elasticsearch Client 8.13.2
- Upgrade to Infinispan 15.0.1.Final
- Upgrade to R2DBC Postgresql 1.0.5.RELEASE
- Upgrade to Spring HATEOAS 2.3.0-RC1
- Null id generated for entity ABC when using Spring Boot 3.2.4 and embedded id HOT 1
- Consider mentioning OpenTelemetry Spring Boot starter in reference manual HOT 1
- Message not included in ErrorAttributes for non-RuntimeExceptions HOT 3
- Add a property for configuring additional livereload paths HOT 1
- missing reflection data for `CGLIB$SET_THREAD_CALLBACKS` in configuration properties class HOT 3
- Configuration properties validation is propagated to non-@Valid fields
- Spring Boot 3.2.4 Java 22 fails to connect to MysSQL using Docker HOT 3
- Use with Spring-Webflux gives a NoClassDefFoundError error HOT 1
- Virtual threads not supported on JDK <21 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.