healthcheck-dotnet-mysql

Register MySQL health checks for .NET readiness endpoints.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually configuring MySQL database readiness health checks for .NET backend services is time-consuming and error-prone, often leading to misconfigured probes that fail to accurately reflect database connectivity status.

Core Features & Use Cases

  • Pre-configured Readiness Probe: Provides ready-to-use code snippets to register a MySQL health check that verifies database connectivity before routing traffic to the service.
  • Framework Compatibility: Integrates seamlessly with the standard .NET HealthChecks library and Jarvis's layered extension setup, requiring minimal changes to existing project configurations.
  • Use Case: For example, if you are deploying a .NET API that connects to a MariaDB/MySQL database, this skill lets you add a /health/ready endpoint that confirms the database is reachable before the service is marked as ready to accept requests.

Quick Start

Use the healthcheck-dotnet-mysql skill to add a MySQL readiness probe to your .NET project's health check configuration.

Frequently Asked Questions about healthcheck-dotnet-mysql

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

FAQPage Schema
How do I add a MySQL readiness probe to .NET health checks?

To add a MySQL readiness probe to .NET health checks, register the AspNetCore.HealthChecks.MySql package with the correct connection string and assign the readiness tag to expose the /health/ready endpoint.

What is a MySQL readiness probe in an ASP.NET Core backend service?

A MySQL readiness probe in an ASP.NET Core backend service verifies database connectivity before routing traffic, ensuring the service only accepts requests when the MySQL or MariaDB database is actually reachable.

Can I use the standard .NET HealthChecks library to verify MariaDB connectivity?

Yes, you can verify MariaDB connectivity using the standard .NET HealthChecks library by configuring the AspNetCore.HealthChecks.MySql package to check your database connection string at the readiness endpoint.

How do I configure ASP.NET Core health checks to block traffic until MySQL is connected?

You configure ASP.NET Core health checks to block traffic by registering a MySQL health check with a readiness tag, ensuring the /health/ready endpoint only reports healthy once database connectivity is confirmed.

Why does my .NET readiness probe fail to accurately reflect MySQL database connectivity?

A .NET readiness probe may fail to accurately reflect MySQL connectivity due to manual configuration errors, which this approach eliminates by providing correctly registered MySql health checks with proper connection string binding.

Does the MySQL readiness probe require manual configuration of the connection string in .NET?

The MySQL readiness probe requires binding the correct connection string in .NET, but eliminates manual configuration effort for the registration logic by providing ready-to-use code snippets for the AspNetCore.HealthChecks.MySql package.