Microsoft.Extensions.Diagnostics.Probes
9.0.0-preview.9.24556.5
Prefix Reserved
dotnet add package Microsoft.Extensions.Diagnostics.Probes --version 9.0.0-preview.9.24556.5
NuGet\Install-Package Microsoft.Extensions.Diagnostics.Probes -Version 9.0.0-preview.9.24556.5
<PackageReference Include="Microsoft.Extensions.Diagnostics.Probes" Version="9.0.0-preview.9.24556.5" />
paket add Microsoft.Extensions.Diagnostics.Probes --version 9.0.0-preview.9.24556.5
#r "nuget: Microsoft.Extensions.Diagnostics.Probes, 9.0.0-preview.9.24556.5"
// Install Microsoft.Extensions.Diagnostics.Probes as a Cake Addin #addin nuget:?package=Microsoft.Extensions.Diagnostics.Probes&version=9.0.0-preview.9.24556.5&prerelease // Install Microsoft.Extensions.Diagnostics.Probes as a Cake Tool #tool nuget:?package=Microsoft.Extensions.Diagnostics.Probes&version=9.0.0-preview.9.24556.5&prerelease
Microsoft.Extensions.Diagnostics.Probes
Answers Kubernetes liveness, startup, and readiness TCP probes based on the results from the Health Checks service.
Install the package
From the command-line:
dotnet add package Microsoft.Extensions.Diagnostics.Probes
Or directly in the C# project file:
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Diagnostics.Probes" Version="[CURRENTVERSION]" />
</ItemGroup>
Usage Example
The health check endpoints can be registered and configured with the following methods:
public static IServiceCollection AddKubernetesProbes(this IServiceCollection services)
public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, IConfigurationSection section)
public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, Action<KubernetesProbesOptions> configure)
Each type of probe handler can have its details configured separately.
services.AddKubernetesProbes(options =>
{
options.LivenessProbe.TcpPort = 2305;
options.StartupProbe.TcpPort = 2306;
options.ReadinessProbe.TcpPort = 2307;
})
The HealthAssessmentPeriod
property defines how often the health-checks are assessed. By default 30 seconds.
Each probe can also specify Func<HealthCheckRegistration, bool>? FilterChecks
to customize which health checks are run.
Feedback & Contributing
We welcome feedback and contributions in our GitHub repo.
Product | Versions 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 is compatible. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.11)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 9.0.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
net8.0
- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.11)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 9.0.0)
-
net9.0
- Microsoft.Bcl.TimeProvider (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Microsoft.Extensions.Diagnostics.Probes:
Package | Downloads |
---|---|
Archetypical.Software.Vega.Api.Abstractions
This package provides a turn-key API and DBContext for any REST and ODATA exposed data models. These models also allow for automated DBContexts across multiple db technologies. Full OTEL support and swagger/redoc tooling |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.0-preview.9.24556.5 | 718 | 11/12/2024 |
9.0.0-preview.9.24507.7 | 265 | 10/8/2024 |
9.0.0-preview.8.24460.1 | 1,232 | 9/10/2024 |
9.0.0-preview.7.24412.10 | 98 | 8/14/2024 |
9.0.0-preview.6.24353.1 | 610 | 7/10/2024 |
9.0.0-preview.5.24311.7 | 107 | 6/11/2024 |
9.0.0-preview.4.24271.2 | 116 | 5/21/2024 |
9.0.0-preview.3.24209.3 | 113 | 4/11/2024 |
9.0.0-preview.2.24157.4 | 296 | 3/12/2024 |
9.0.0-preview.1.24108.1 | 109 | 2/13/2024 |
8.10.0-rtm.24502.7 | 82 | 10/8/2024 |
8.9.1-rtm.24456.4 | 64 | 9/6/2024 |
8.9.0-rtm.24454.2 | 58 | 9/5/2024 |
8.8.0-rtm.24412.9 | 1,833 | 8/13/2024 |
8.7.0-rtm.24353.5 | 139 | 7/10/2024 |
8.6.0-rtm.24311.4 | 74 | 6/11/2024 |
8.5.0-rtm.24263.4 | 230 | 5/14/2024 |
8.4.0-rtm.24205.3 | 100 | 4/9/2024 |
8.3.0-rtm.24161.6 | 88 | 3/12/2024 |
8.2.0-rtm.24107.6 | 102 | 2/13/2024 |
8.1.0-rtm.24058.3 | 129 | 1/9/2024 |
8.0.0-rtm.23558.11 | 328 | 11/14/2023 |
8.0.0-rc.2.23510.2 | 133 | 10/10/2023 |
8.0.0-rc.1.23453.1 | 135 | 9/12/2023 |
8.0.0-preview.7.23407.5 | 110 | 8/8/2023 |
8.0.0-preview.6.23360.2 | 94 | 7/12/2023 |