Comments (6)
thanks for opening this issue. Unfortunately this is not a bug but intended behavior as Spring Boot Admin does not poll for endpoints, when the state of an instance is either unknown or offline. This results in "missing" endpoint links in the detail view of an instance.
The 'UNKNOWN' state is set, when a new instance is registered at Spring Boot Admin Server or a unregistration of the service/instance is in progress.
You wrote that "When the application is reporting 'HEALTHY' again", what assumes, that your service is switching between UNKNOWN and HEALTHY state, right? Have you checked, why this might happen (e.g. service crashes and restarts)?
Regards,
SteKoe
from spring-boot-admin.
Hi @SteKoe,
Thank you for your prompt response. Good to know this not a bug.
At our applications we deliberately use the 'UNKNOWN' health state in case part of the application is in a suboptimal condition. We have a custom health indicator that reports 'UNKNOWN' for this part of the application. Per the actuator docs: "Status indicating that the component or subsystem is in an unknown state". This is the status that most closely resembles the actual state.
We know the application is not down, nor out of service, but we want to indicate part of the application requires attention.
Missing the links in the UI doesn't really fit this situation. What's your advise here?
from spring-boot-admin.
I suggest to use "RESTRICTED" as state. This state indicates that the service has a problem, but it is neither down nor completely working as expected.
from spring-boot-admin.
Hi @SteKoe,
I've been able to run some tests with the one health indicator returning the custom state RESTRICTED instead. The aggregate health status still seems to become 'UNKNOWN' however, so I'm not sure this is a solution. I guess this requires a custom StatusAggregator then?
-- edit: ignore the above. I just found our app already has a custom StatusAggregator. Let me look at that first...
from spring-boot-admin.
@Hildebrand-Ritense,
If I'm not missing something (with respect to the pull request attached), there's nothing which keeps us from closing this issue, right?
Cheers,
Uli
from spring-boot-admin.
That's right, with your advice we changed our application code (see PR above) and all is now working well.
Thank you!
from spring-boot-admin.
Related Issues (20)
- Status changed event does not include health details HOT 2
- Admin Health Endpoint throwing Invalid Char in Cookie value error HOT 5
- Problems still exist HOT 10
- Specify the ip of springadminserver to restrict ip access to actuator endpoints. HOT 3
- Strange scrollbar in the application list
- springbootadmin-client, Start using external tomcat,Failed to register with the admin server HOT 3
- Unable to list logging groups on the Loggers UI section
- For changing the colors of hexagons on springboot admin wallboard according to a custom status HOT 1
- Missing applicationversion in applicationlist HOT 2
- Filter-Input is lost after selecting an application HOT 1
- White screen when route with traefik HOT 4
- Memory leak HOT 2
- Consuming High CPU in 3.2.1 HOT 4
- Session-list detail page 'Created At' and 'Last Accessed At' show incorrectly with spring 2.24 HOT 2
- How to use vue-rx with spring boot admin and Vue3? Error: " vue-rx.esm.js:310 Uncaught TypeError: Vue.use is not a function" HOT 1
- default-timeout is ignored HOT 3
- search filter in spring-boot-admin wallboard is missing values HOT 2
- Getting Health data from InstanceRegistry to add custom mail. HOT 1
- Adding dynamic data in custom mail HOT 3
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-admin.