Akka.HealthCheck
1.0.0-beta1
Prefix Reserved
See the version list below for details.
dotnet add package Akka.HealthCheck --version 1.0.0-beta1
NuGet\Install-Package Akka.HealthCheck -Version 1.0.0-beta1
<PackageReference Include="Akka.HealthCheck" Version="1.0.0-beta1" />
paket add Akka.HealthCheck --version 1.0.0-beta1
#r "nuget: Akka.HealthCheck, 1.0.0-beta1"
// Install Akka.HealthCheck as a Cake Addin #addin nuget:?package=Akka.HealthCheck&version=1.0.0-beta1&prerelease // Install Akka.HealthCheck as a Cake Tool #tool nuget:?package=Akka.HealthCheck&version=1.0.0-beta1&prerelease
Akka.NET healthchecks for environments like K8s, AWS, Azure, Pivotal Cloud Foundry, and more.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Akka.HealthCheck:
Package | Downloads |
---|---|
Akka.HealthCheck.Cluster
Akka.NET and Akka.Cluster healthchecks for environments like K8s, AWS, Azure, Pivotal Cloud Foundry, and more. |
|
Akka.HealthCheck.Persistence
Akka.NET and Akka.Persistence healthchecks for environments like K8s, AWS, Azure, Pivotal Cloud Foundry, and more. |
|
Akka.HealthCheck.Hosting
Package Description |
|
Akka.Cluster.HealthCheck
Akka.NET and Akka.Cluster healthchecks for environments like K8s, AWS, Azure, Pivotal Cloud Foundry, and more. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.5.31 | 20 | 11/27/2024 |
1.5.26.1 | 41,007 | 7/18/2024 |
1.5.26 | 1,179 | 7/15/2024 |
1.5.24 | 7,916 | 6/11/2024 |
1.5.18 | 19,146 | 3/25/2024 |
1.5.17.1 | 4,698 | 3/4/2024 |
1.5.16 | 3,576 | 2/23/2024 |
1.5.12 | 42,518 | 9/11/2023 |
1.5.9 | 8,620 | 7/24/2023 |
1.5.2 | 45,268 | 4/19/2023 |
1.5.0.1 | 6,735 | 3/8/2023 |
1.5.0 | 1,129 | 3/3/2023 |
1.0.0 | 2,428 | 1/18/2023 |
1.0.0-beta1 | 570 | 1/5/2023 |
0.3.4 | 1,433 | 12/22/2022 |
0.3.3 | 2,429 | 11/2/2022 |
0.3.2 | 49,233 | 6/24/2021 |
0.3.1 | 2,135 | 3/25/2021 |
0.3.0 | 16,113 | 3/11/2020 |
0.3.0-rc2 | 712 | 3/10/2020 |
0.3.0-rc1 | 674 | 3/2/2020 |
0.2.1 | 26,172 | 3/20/2019 |
0.2.0 | 1,794 | 3/15/2019 |
0.1.0 | 1,256 | 2/4/2019 |
This release is a beta release of the new `Akka.Hosting` API and the ASP.NET integration API. We would love to hear your input on these new APIs.
[Bumped Akka version to 1.4.47](https://github.com/akkadotnet/akka.net/releases/tag/1.4.47)
[Add multi probe provider support](https://github.com/petabridge/akkadotnet-healthcheck/pull/151)
[Add `Akka.Hosting` support and ASP.NET IHealthCheck integration](https://github.com/petabridge/akkadotnet-healthcheck/pull/148)
[Expanded persistence health check reporting](https://github.com/petabridge/akkadotnet-healthcheck/pull/154)
[Bump Akka.Hosting from 0.5.1 to 1.0.0](https://github.com/petabridge/akkadotnet-healthcheck/pull/163)
[Improve ASP.NET health check route configuration callback](https://github.com/petabridge/akkadotnet-healthcheck/pull/165)
[Fix probe status reporting to account for all provider statuses](https://github.com/petabridge/akkadotnet-healthcheck/pull/171)
[Add documentation](https://github.com/petabridge/akkadotnet-healthcheck/pull/173)
Notable Changes From Previous Versions**
> **NOTE**
>
> All these information can be read in the documentation [here](https://github.com/petabridge/akkadotnet-healthcheck/blob/dev/README.md)
1. Improved Persistence Status Report**
Persistence health check now returns a `PersistenceLivenessStatus` with a more comprehensive status report that also includes whether snapshots and journal events were successfully persisted, and any exceptions thrown during the probe execution.
2. Multi-provider Support**
Both liveness and readiness endpoint can now host multiple health check probe providers. Note that both liveness and readiness endpoint will return unhealthy if any of these hosted probes reported that they are unhealthy.
The HOCON configuration for `Akka.HealthCheck` has been changed to accomodate this. Instead of settings a single provider, you can now pass in multiple providers at once:
```hocon
akka.healthcheck {
liveness {
providers {
default = "Akka.HealthCheck.Liveness.DefaultLivenessProvider, Akka.HealthCheck"
cluster = "Akka.HealthCheck.Cluster.ClusterLivenessProbeProvider, Akka.HealthCheck.Cluster"
}
}
readiness {
providers {
default = "Akka.HealthCheck.Readiness.DefaultReadinessProvider, Akka.HealthCheck"
custom = "MyAssembly.CustomReadinessProvider, MyAssembly"
}
}
```
3. `Akka.Hosting` integration**
To configure multi providers via `Akka.Hosting`, you can install the new `Akka.HealthCheck.Hosting` NuGet package and use the convenience method `AddProviders()` and provide the combination of providers you would like to run like so:
```csharp
// Add Akka.HealthCheck
builder.WithHealthCheck(options =>
{
// Here we're adding all of the built-in providers
options.AddProviders(HealthCheckType.All);
});
```
`HealthCheckType` is a bit flag enum that consists of these choices:
```csharp
[Flags]
public enum HealthCheckType
{
DefaultLiveness = 1,
DefaultReadiness = 2,
Default = DefaultLiveness | DefaultReadiness,
ClusterLiveness = 4,
ClusterReadiness = 8,
Cluster = ClusterLiveness | ClusterReadiness,
PersistenceLiveness = 16,
Persistence = PersistenceLiveness,
All = Default | Cluster | Persistence
}
```
Depending on your code style, You can also use the more verbose methods to add providers:
```csharp
// Add Akka.HealthCheck
builder.WithHealthCheck(options =>
{
// Here we're adding all of the built-in providers one provider at a time
options
.ClearAllProviders()
.AddDefaultReadinessProvider()
.AddClusterReadinessProvider()
.AddDefaultLivenessProvider()
.AddClusterLivenessProvider()
.AddPersistenceLivenessProvider();
});
```
Custom `IProbeProvider` can be added using these methods:
```csharp
// Add Akka.HealthCheck
builder.WithHealthCheck(options =>
{
// Adding custom user IProbeProvider providers
options
.AddReadinessProvider<MyReadinessProvider>("custom-readiness")
.AddLivenessProvider<MyLivenessProvider>("custom-liveness");
});
```
4. ASP.NET `IHealthCheck` Integration**
`Akka.HealthCheck` can be integrated directly by installing the `Akka.HealthCheck.Hosting.Web` NuGet package. You can read the documentation [here](https://github.com/petabridge/akkadotnet-healthcheck/blob/dev/README.md#aspnet-integration)