Asp.Net Core released version 2.2 and together with it comes HealthChecks feature. (Read more). One of the features it has is to push health check results to Azure Application Insights. But I have not found any way how to see those results in Azure portal. To send the results I am using following extension:
services.AddHealthChecks()
.AddSqlServer("...")
.AddApplicationInsightsPublisher();
Is there a way to view those Health Check reports in Application Insights?
EDIT 1: I took the example from official github docs.
EDIT 2: If I go to the Azure portal query analytics I see following results:
Querying requests
:
Querying customEvents
here: GET /health
is my healthCheck endpoint. By querying requests
logs I can see if health check failed or not, but I want to see more details about each health check, also I don't think I need any extension for this, so I don't understand what AddApplicationInsightsPublisher()
actually does.
AddHealthChecks
service and it should push health check results to Application insights – Lirequests
logs, but there I can only know if request succeded or failed, I would like to see which part of health check is failing exactly. – Li