AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

Is it possible to modify the frequency on health checks ?

Open junsaw opened this issue 2 years ago • 1 comments

My StartUp code has this, is it possible to modify the frequency ? Any help will be much appreciated.

services.AddHealthChecks() .AddApplicationInsightsPublisher(Configuration["App:AppInsightsInstrumentationKey"]) .AddAzureBlobStorage(Configuration["Data:StorageAccountConnectionString"].ToString()) .AddAzureTable(Configuration["Data:StorageAccountConnectionString"].ToString());

junsaw avatar Jul 06 '22 19:07 junsaw

Do we have any update on this request ?

junsaw avatar Jul 11 '22 12:07 junsaw

Hi @junsaw, the frequency of calls to your healthcheck endpoint can be determined by the HealthChecksUI configuration or whichever other tool you are using to check the health of your application, e.g. load balancer.

rob-baldwin avatar Apr 27 '23 05:04 rob-baldwin

@rob-baldwin Thanks for response. Yes, HC design is poll-related (passive), not push (active).

sungam3r avatar Apr 27 '23 08:04 sungam3r

For push design use IHealthCheckPublisher related classes.

sungam3r avatar Apr 27 '23 08:04 sungam3r