Use the below configuration can automatically refresh health statuses after default time of seconds.
builder.Services.AddHealthChecksUI().AddInMemoryStorage(); app.MapHealthChecksUI(config => config.UIPath = "/health-ui");