health-checks

Configure ASP.NET Core health checks for liveness, readiness, and dependencies.

69|13|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill health-checks-ronnythedev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: health-checks
Source: https://github.com/ronnythedev/dotnet-clean-architecture-skills/tree/main/sample/POS/.claude/skills/17-health-checks
Command: npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill health-checks-ronnythedev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Health checks are essential to ensure your .NET applications remain healthy in production, but configuring and maintaining liveness/readiness checks across multiple dependencies can be tedious and error-prone.

Core Features & Use Cases

  • Configurable health checks for PostgreSQL, external services, and custom application checks using ASP.NET Core Health Checks.
  • Readiness and liveness endpoints to support container orchestration and automatic restarts, with ready tags and degraded statuses for responsive feedback.
  • Template-driven setup enabling rapid integration into enterprise services with minimal boilerplate.

Quick Start

Use health checks to expose readiness and liveness endpoints by registering health checks and mapping endpoints in your ASP.NET Core app. For example, configure AddHealthChecks with AddNpgSql, AddUrlGroup, and custom checks, then map /health/live and /health/ready in Program.cs.

Frequently Asked Questions about health-checks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure health checks for ASP.NET Core containerized services?

To configure health checks for ASP.NET Core containerized services, register AddHealthChecks in Program.cs and map separate readiness and liveness endpoints to support automatic container orchestration restarts.

What is the difference between liveness and readiness endpoints in .NET apps?

Liveness endpoints in .NET apps indicate if the application process is running, while readiness endpoints check if dependencies like databases are available, using ready tags to prevent routing traffic to unprepared instances.

Can I monitor PostgreSQL database health using ASP.NET Core health checks?

Yes, you can monitor PostgreSQL database health by configuring AddHealthChecks with AddNpgSql in your ASP.NET Core application to track database availability and return degraded statuses for responsive feedback.

How do I add custom health checks for external services in .NET?

To add custom health checks for external services in .NET, use AddUrlGroup to monitor external service URLs or implement custom health check classes to evaluate specific application dependencies and map them to endpoints.

Does this health checks template work without external dependencies?

This health checks template works without external package dependencies by applying built-in ASP.NET Core Health Checks patterns, configuring AddHealthChecks, custom checks, and endpoint mappings directly within your application.

Related Skills