Aspire 9.1 Service returns Unhealthy, but Aspire Dashboard does not reflect the state #8139
-
Is there an existing issue for this?
Describe the bugFor testing purposes, I changed the code line in the aspire template project from I wanted to know how this would reflect on the Dashboard. To my surprise, all Services are flagged green. If I call the /health or /alive URL the service returns Unhealthy as expected. So how can the Dashboard not show this? The only thing I could see that happened is that if I call /alive, I see an error log at the service mentioning that it is called in an unhealthy state. Expected BehaviorThe Dashboad sould show the unhealty state of the service. Steps To ReproduceChange Exceptions (if any)No response .NET Version info.NET SDK: Laufzeitumgebung: Installierte .NET-Workloads: [maui-windows] [wasm-tools] Konfiguriert für die Verwendung loose manifests beim Installieren neuer Manifeste. Host: .NET SDKs installed: .NET runtimes installed: Other architectures found: Environment variables: global.json file: Learn more: Download .NET: Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
??? |
Beta Was this translation helpful? Give feedback.
-
Health checks in the application will not automatically show up in the dashboard. You need to put add the health check in the app host (the app host is the one doing the health checking on your application). |
Beta Was this translation helpful? Give feedback.
Health checks in the application will not automatically show up in the dashboard. You need to put add the health check in the app host (the app host is the one doing the health checking on your application).