DotNetDiag.HealthChecks.ClickHouse 11.0.1

dotnet add package DotNetDiag.HealthChecks.ClickHouse --version 11.0.1
                    
NuGet\Install-Package DotNetDiag.HealthChecks.ClickHouse -Version 11.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetDiag.HealthChecks.ClickHouse" Version="11.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetDiag.HealthChecks.ClickHouse" Version="11.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DotNetDiag.HealthChecks.ClickHouse" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotNetDiag.HealthChecks.ClickHouse --version 11.0.1
                    
#r "nuget: DotNetDiag.HealthChecks.ClickHouse, 11.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DotNetDiag.HealthChecks.ClickHouse@11.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotNetDiag.HealthChecks.ClickHouse&version=11.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DotNetDiag.HealthChecks.ClickHouse&version=11.0.1
                    
Install as a Cake Tool

ClickHouse Health Check

This health check verifies the ability to communicate with ClickHouse. It uses the ClickHouse.Driver library.

Usage

void Configure(IServiceCollection services)
{
    services.AddHealthChecks()
        .AddClickHouse("Host=ch;Username=default;Password=test;Database=default");
}

Advanced usage

If you want to manage the HTTP connection manually (e.g. via IHttpClientFactory), you can use the factory overload:

void Configure(IServiceCollection services)
{
    services.AddHttpClient("ClickHouseClient");
    services.AddHealthChecks().AddClickHouse(static sp => {
        var httpClientFactory = sp.GetRequiredService<IHttpClientFactory>();
        return new ClickHouseConnection("Host=ch;Username=default;Password=test;Database=default", httpClientFactory, "ClickHouseClient");
    });
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on DotNetDiag.HealthChecks.ClickHouse:

Repository Stars
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
Version Downloads Last Updated
11.0.1 74 11/30/2026
10.0.16 134 10/3/2026
10.0.14 139 8/16/2026
10.0.10 150 7/7/2026
10.0.9 128 7/6/2026
10.0.8 1,168 5/9/2026
10.0.7 144 4/16/2026
10.0.4 739 4/6/2026
10.0.0 146 4/3/2026