- Creates the JSON response for the health checks in special PRTG format
- add nuget package Samhammer.AspNetCore.HealthChecks.Prtg
app.UseHealthChecks("/health-prtg", new HealthCheckOptions
{
ResponseWriter = PrtgResponseWriter.WriteHealthCheckPrtgResponse
});
- use the sensor "HTTP data advanced" (https://www.paessler.com/manuals/prtg/http_data_advanced_sensor) and configure to your prtg health endpoint (like in the example above ([URL_TO_YOUR_SERVICE]/health-prtg)
- Create a tag and let the github action do the publishing for you