Skip to main content

Health checks

In the 'FlowtideDotnet.AspNetCore' package, there is built in support for 'Microsoft.Extensions.Diagnostics.HealthChecks'. If you have added your stream using:

builder.Services.AddFlowtideStream(...)

You can add health checks with the following command:

builder.Services
.AddHealthChecks()
.AddFlowtideCheck();

Statuses

This section describes how the different stream statuses maps to the health check status:

Stream StatusHealth check statusDescription
FailingUnhealthyStream has crashed
RunningRunningOperational
StartingDegradedStarting is only reported when going from stopped -> running
StoppedUnhealthyIf a stream should be stopped, remove it from health check
DegradedDegradedReported if a operator is degraded, such as slow performance