I have setup an ASP.NET Core 6.0 web app that uses Azure ApplicationInsights.
Healthcheck is configured like this:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecks();
...
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseEndpoints(endpoints =>
{
...
endpoints.MapHealthChecks("/healthz");
});
}
}
And when I deploy my app to azure app service my live-metrics are clogged with healthchecks:
I see in a blogpost that someone has written custom filters inside the app.
Is it possible to configure this in a more easy way?
