healthcheck-dotnet-mssql

Configure SQL Server readiness probes for ASP.NET Core health check endpoints.

12|2|Updated May 4, 2020
One-click install
npx skills add https://github.com/hoangnh2412/jarvis --skill healthcheck-dotnet-mssql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: healthcheck-dotnet-mssql
Source: https://github.com/hoangnh2412/jarvis/tree/main/.opencode/skills/healthcheck-dotnet/providers/mssql
Command: npx skills add https://github.com/hoangnh2412/jarvis --skill healthcheck-dotnet-mssql

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the need for manual configuration of SQL Server connectivity probes in .NET application health check endpoints, ensuring traffic is only routed to instances that can successfully access the primary database.

Core Features & Use Cases

  • Standard Health Check Integration: Registers a SQL Server readiness check using the official AspNetCore.HealthChecks.SqlServer library, compatible with the Jarvis framework's health check pipeline.
  • Lightweight Connectivity Probe: Uses a simple SELECT 1 query to verify database accessibility without adding performance overhead.
  • Use Case: For a .NET 9 backend built with the Jarvis framework, this skill adds a SQL Server readiness check to the /health/ready endpoint, so load balancers and orchestration platforms only send traffic to instances with active database connections.

Quick Start

Use the healthcheck-dotnet-mssql skill to add a SQL Server readiness probe to your .NET application's health check configuration using your pre-configured main database connection string.

Frequently Asked Questions about healthcheck-dotnet-mssql

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

FAQPage Schema
How do I add a SQL Server readiness check to my ASP.NET Core health endpoint?

To add a SQL Server readiness check to ASP.NET Core, register a connectivity probe using the AspNetCore.HealthChecks.SqlServer library within your health check pipeline. This exposes a /health/ready endpoint that returns healthy status only when the configured SQL Server database is accessible.

What is the best way to verify SQL Server database connectivity in a .NET health check?

The best way to verify SQL Server connectivity in a .NET health check is using a lightweight SELECT 1 query. This approach checks database accessibility without adding performance overhead to your application's health check pipeline.

Does this SQL Server health check work with the Jarvis framework?

Yes, this SQL Server health check works with the Jarvis framework. It registers the readiness check using the official AspNetCore.HealthChecks.SqlServer library, making it compatible with the Jarvis framework's health check pipeline for ASP.NET Core projects.

How do I configure a /health/ready endpoint for SQL Server in .NET?

You configure a /health/ready endpoint for SQL Server by registering a readiness check that uses your pre-configured main database connection string. This ensures load balancers and orchestration platforms only route traffic to instances with active database connections.

Why does my ASP.NET Core application need a database readiness probe?

An ASP.NET Core application needs a database readiness probe to ensure traffic is only routed to instances that can successfully access the primary database. This prevents routing requests to instances without active SQL Server connections.

Can I use this health check skill with .NET 9 backend projects?

Yes, you can use this health check skill with .NET 9 backend projects. It is designed for ASP.NET Core projects built with the Jarvis framework, adding SQL Server readiness validation to the health check pipeline for load balancer traffic routing.