Xabaril / AspNetCore.Diagnostics.HealthChecks

Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Apache License 2.0
4.07k stars 793 forks source link

I want to be able to disable the UI, but still have the api and webhook endpoints available #1613

Open livelylarry opened 1 year ago

livelylarry commented 1 year ago

To be able to disable the UI, but still have the api and webhook endpoints available.

To automate the health checks and alerts, but prevent use of the UI in production environments.

ThumNet commented 1 year ago

The UI is not enabled by default, so you should be fine.

See documentation

livelylarry commented 1 year ago

If I don't map the UI, the healthchecks-api endpoint does not work. I did a work-around with middleware to short-circuit on the healthchecks-ui endpoint and return a 404. It works, but it's not ideal. As a matter of fact, at this point, I'd rather just run the polling w/out the UI as a windows service. We use IIS and the polling doesn't start unless you make a request to the app. We've got another work-around for that, but not ideal.