-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamically adding health check endpoints #535
Comments
This capability is added in our docker image as the K8s operator is able to publish discovered services to the target UI. Can you work with containers? |
Let me explain the case which I am trying to implement.
|
Currently we work around this by dynamically fetching the endpoints from an external data store during startup, adding them in the startup code, and rebooting the web app if the endpoints we want to monitor changes. Hardly ideal - having a way to dynamically add health check endpoints in some fashion would be much better. In our circumstance, we are using Azure App Services and have no plans to migrate to K8s. |
@NateB2, HealthChecksDb DbContext is now public. You can retrieve it using Dependency Injection and use the underlying storage provider to add, remove or edit your remote endpoints. |
@CarlosLanderas .. Great ... Let me implement it in my solution then and check :) |
For future Googlers also finding this thread. We wanted to dynamicly add and disable healthchecks, however there's is no active-flag so we need some logic to keep the healthchecks we want to keep. We ended up building a simple controller that first does a delete and adds back the ones we want to keep.
|
What would you like to be added: As per current implementation, all the health check endpoints should be added while registering the HealthCheckUI middleware. Consider a case :
a. Complete endpoint URL
b. Date when the API was last built
c. The username who deployed the API, etc
Why is this needed:
Providing more flexibility to users in customizing the UI as per needs.
I am working on an API project where I actually have such requirement. I am trying to figure out my own way to achieve it.
The text was updated successfully, but these errors were encountered: