Giter VIP home page Giter VIP logo

Comments (6)

SteKoe avatar SteKoe commented on May 27, 2024

Hi @Hildebrand-Ritense,

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.

Hildebrand-Ritense avatar Hildebrand-Ritense commented on May 27, 2024

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.

SteKoe avatar SteKoe commented on May 27, 2024

Hi @Hildebrand-Ritense,

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.

Hildebrand-Ritense avatar Hildebrand-Ritense commented on May 27, 2024

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.

ulischulte avatar ulischulte commented on May 27, 2024

@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.

Hildebrand-Ritense avatar Hildebrand-Ritense commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.