-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Spring Boot Admin Server information
-
Version: 4.0.2
-
Spring Boot version: 4.0.3
-
Configured Security: None
-
Webflux or Servlet application: WebFlux
Client information
-
Spring Boot versions: Both 3.x and 4.x
-
Used discovery mechanism: Eureka
-
Webflux or Servlet application: Both
Description
While rendering the details of an instance the UI is calling the health endpoint twice.
This is unnecessary and also resource consuming for no real benefit.
This is probably caused by the fact that the health is fetch both when the component is created with the hook https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-health.vue#L131 as well as by the watcher since it's set to immediate at https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-health.vue#L128.
Ideally, unless I miss some context, one of the two could be removed with no issue.
Moreover, when being inside the view of the details of an instance, if the refresh button is pressed on the browser the following error appears in the console:
It's probably unrelated with the issue reported in this ticket, but maybe it can be fixed together.