You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Health instance details are not refreshed on status change #5156
I realized that the details view of an instance doesn't get refreshed anymore when a new status update comes in.
I had the page open and, while I correctly got the browser notification that the instance went from RESTRICTED to UP, the page was still showing it as RESTRICTED.
Only an explicit refresh of the page made then possible to show the final, correct state.
I installed the new version but now the UI is flickering on every refresh.
Not only the health section but the entire instance view somehow flickers.
Even if the accordions are collapsed.
Is this to be expected? I must say it's not very pleasant :)
The heavy load of fetching the health should happen on the backend (like it was on 3.x I think, since I didn't experience this flickering) and not on the frontend.
The same probably applies to the info section, but I didn't had the chance to check in there yet.
Basically, in my opinion, they should behave like the journal view where, after directly fetching an initial state, the data are coming from the SSEs so that the UI has no real heavy work to do.
Moreover, given that the health and info section of the instance details view just show the latest state, potentially it's not even needed to fetch the initial state directly but just wait for the SSE with some sort of loading indicator and a label explaining why it's shown (e.g.: Waiting for health events from the server).
On the other end, it's also nice to open the instance details view and have an intial state, so I could accept with no issue the call to fetch the initial state.
Currently, once more if I got the code right, we then end up calling the health/info 2 * num of SBA instances since those calls are both done by the status/info update triggers on the backend as well as by the UI.
You can easily see how this is not ideal since it's just the same work done twice. :)
Should I maybe open another ticket to tackle this?
What do/does you/the team think?
The heavy load of fetching the health should happen on the backend (like it was on 3.x I think, since I didn't experience this flickering) and not on the frontend.
The same probably applies to the info section, but I didn't had the chance to check in there yet.
Basically, in my opinion, they should behave like the journal view where, after directly fetching an initial state, the data are coming from the SSEs so that the UI has no real heavy work to do.
Moreover, given that the health and info section of the instance details view just show the latest state, potentially it's not even needed to fetch the initial state directly but just wait for the SSE with some sort of loading indicator and a label explaining why it's shown (e.g.: Waiting for health events from the server). On the other end, it's also nice to open the instance details view and have an intial state, so I could accept with no issue the call to fetch the initial state.
Currently, once more if I got the code right, we then end up calling the health/info 2 * num of SBA instances since those calls are both done by the status/info update triggers on the backend as well as by the UI. You can easily see how this is not ideal since it's just the same work done twice. :)
Should I maybe open another ticket to tackle this? What do/does you/the team think?
Activity
fix(#5156): details page information fetching (#5159)
SteKoe commentedon Mar 25, 2026
Should be fixed. I have added tests and checked the behaviour manually. Will be shipped with next release.
cdprete commentedon Mar 25, 2026
Thanks for the fix @SteKoe. It would be great if this could be released as soon as possible :)
cdprete commentedon Apr 7, 2026
Hello @SteKoe.
Would it be possible to get this released?
Ideally, please include at least #5186 as well in the released package.
Thanks in advance.
cdprete commentedon Apr 13, 2026
Hello @SteKoe.
I installed the new version but now the UI is flickering on every refresh.
Not only the health section but the entire instance view somehow flickers.
Even if the accordions are collapsed.
Is this to be expected? I must say it's not very pleasant :)
cdprete commentedon Apr 17, 2026
Hello @SteKoe.
Indeed, if I understood the code in https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-health.vue right (I'm only missing when the
instanceprop would be updated to trigger thewatcher), we're now fetching the health directly by calling the instance-specific actuator endpoint.Ideally, instead, we should just subscribe to https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/web/InstancesController.java#L161, filter the events by type and use the SSE as only source of truth.
The heavy load of fetching the health should happen on the backend (like it was on 3.x I think, since I didn't experience this flickering) and not on the frontend.
The same probably applies to the
infosection, but I didn't had the chance to check in there yet.Basically, in my opinion, they should behave like the journal view where, after directly fetching an initial state, the data are coming from the SSEs so that the UI has no real heavy work to do.
Moreover, given that the health and info section of the instance details view just show the latest state, potentially it's not even needed to fetch the initial state directly but just wait for the SSE with some sort of loading indicator and a label explaining why it's shown (e.g.: Waiting for health events from the server).
On the other end, it's also nice to open the instance details view and have an intial state, so I could accept with no issue the call to fetch the initial state.
Currently, once more if I got the code right, we then end up calling the health/info
2 * num of SBA instancessince those calls are both done by the status/info update triggers on the backend as well as by the UI.You can easily see how this is not ideal since it's just the same work done twice. :)
Should I maybe open another ticket to tackle this?
What do/does you/the team think?
/cc @erikpetzold @hzpz @ulischulte (I interacted with nobody else so far :D)
cdprete commentedon Apr 20, 2026
I've opened #5286 to handle this.