Lightweight health checks and readiness probes for .NET services. Built-in checks for databases, HTTP dependencies, disk space, and memory with three-state model, TTL caching, and Kubernetes-ready endpoints.
$ dotnet add package JG.HealthKitLightweight health check and readiness probe library for .NET services. Built-in checks for databases, HTTP dependencies, disk space, and memory — with Kubernetes-ready endpoints, degraded state detection, and custom check support.
/health/live and /health/ready endpoints for orchestrator probesIHealthCheck for application-specific health indicatorsservices.AddHealthKit()dotnet add package JG.HealthKit
builder.Services.AddHealthKit(options =>
{
options.AddSqlServer("Server=localhost;Database=mydb;...");
options.AddHttpDependency("payment-api", "https://api.payments.com/health");
options.AddDiskSpace(threshold: 500_000_000); // 500MB minimum
options.CacheDuration = TimeSpan.FromSeconds(10);
});
app.MapHealthKit(); // Maps /health/live and /health/ready
Contributions are welcome! Please feel free to submit a Pull Request.
Licensed under the Apache License 2.0. See LICENSE for details.
Ready to get started? Install via NuGet and check out the API reference.