Questions tagged [health-check]

A status of a service and any services it depends on. The health check can be used to monitor the service and is usually accessed via a request to a specific route on the server.

What is a health check?

Health checks are a way to know the status of the service we are monitoring.

This status can be affected by several factors:

  1. The internal state of the service
  2. The external services the service uses (such as external APIs, message brokers)
  3. Hardware dependencies (such as storage or network problems)

Identifying what problems exist in real-time can greatly improve the day-to-day management of the service, and can help track down issues that result from it's downgraded performance, as well as provide observability for a wide array of services.

What questions should contain this tag?

  1. Questions about the proper use of health-checks
  2. Questions about specific implementations of health-checks
  3. Questions about real-time monitoring using health-checks
  4. Questions about recommended health check for specific dependencies
421 questions
3
votes
2 answers

Enable Health Check in a app service via CLI

Is there any way to enable health check via cli in azure app services? I see that we can modify some configurations but not an option to enable/disable the feature. Thank you!
3
votes
1 answer

Why is the "readinessState" detail of /health different from the readiness probe status?

In Spring-Boot 2.4, I have this problem with the Actuator health endpoint and readiness probe. When one of my custom key components is down, the /health/readiness endpoint says DOWN and the /health endpoint too, but the readinessState detail of…
AdrienW
  • 3,092
  • 6
  • 29
  • 59
3
votes
3 answers

Verify dynamodb is healthy

I would like to verify in my service /health check that I have a connection with my dynamodb. I am searching for something like select 1 in MySQL (its only ping the db and return 1) but for dynamodb. I saw this post but searching for a nonexisting…
Tom Weinberg
  • 31
  • 1
  • 2
3
votes
1 answer

What are webhooks used for in the Health Checks UI?

I am trying to learn more about .Net Core Health Checks. I understand the concept of a web hook i.e. it notifies you that an event has occurred in a third party application. However, I do not understand the concept of a web hook in the context of…
w0051977
  • 15,099
  • 32
  • 152
  • 329
2
votes
2 answers

Is there a way in ASP.NET to get all singletons?

Is there a way in ASP.NET to get all singletons? I want to implement a health check which would instantiate all the registered singletons and only after that return a healthy status. I am trying to get all the singletons from the IServiceProvider,…
manymanymore
  • 2,251
  • 3
  • 26
  • 48
2
votes
1 answer

Configuring NET 6 Azure Function App Healthchecks

I'm struggling to find any up to date documentation on how to setup healthchecks in Azure for a .NET 6 Core function app. The app is running in DOTNET-ISOLATED, within an app service plan (not consumption). This documentation explains how to setup…
Phil S
  • 642
  • 8
  • 19
2
votes
2 answers

Problem with HealthChecks.UI.SqlServer.Storage migrations

I'm trying to use Healthchecks UI in my asp.net core application with SqlServer.Storage for history purposes. It works with InMemoryStorage (without history part, of course). So, Startup.cs code is like this: services.AddHealthChecks() …
Nino
  • 6,931
  • 2
  • 27
  • 42
2
votes
1 answer

HealthCheckUI (AspNetCore.Diagnostics.HealthChecks) Unexpected Character 'H' error

I'm having an issue with the AspNetCore HealthCheckUI. I followed this example: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks#healthcheckui My UI is up and running and my services are up and running with a healthcheck that just…
JBoothUA
  • 3,040
  • 3
  • 17
  • 46
2
votes
0 answers

How to define /health endpoint without version of base url using goswagger in golang

I've generated swagger using goswagger in golang application. My base url is [ Base URL: /{service-name}/api/v1 ] and health endpoint after click on try out option in swagger /{service-name}/api/v1/health but in actual it should be without version…
2
votes
3 answers

How do I disable Cassandra database connectivity test during startup of a Quarkus application?

I need to switch off the Cassandra database connectivity/health test at startup of the Quarkus application. The application starts successfully, only if it can reach the database. I need to switch it off only for tests, e.g. when I run tests with…
F4k3d
  • 653
  • 1
  • 10
  • 29
2
votes
1 answer

Use wget instead of curl for healthchecks in ASP.NET Core docker images

I want to use an ASP.NET Core 6 healthcheck as a docker healthcheck. The docs state: Containers that use images based on Alpine Linux can use the included wget in place of curl But there is no guidance for that, and as usual getting the docker…
lonix
  • 14,255
  • 23
  • 85
  • 176
2
votes
2 answers

How to add Health Checks to Swagger

after looking through many articles and not finding a clear answer, I would like to start one more time a topic about adding Health Checks to the swagger in ASP .Net Core. Firstly, I would like to ask you if it is good idea to do that and how to do…
2
votes
1 answer

ASP.NET Healthchecks Not Working on Blazor App Deployment

I have built a Blazor server app and deployed it on IIS. All of its core functionality is running as expected aside from the healthchecks. When I run the Blazor app via visual studio, I get the following results in my healthcheck-ui: However, when…
TriedAtLeast
  • 181
  • 1
  • 10
2
votes
2 answers

How to do a health check on a POST url in ASP.NET/blazor

I am trying to implement health checks in my blazor application. To do so, I have used the Microsoft.AspNetCore.Diagnostics.HealthChecks package among others. Below you can see sql and url health checks. startup.cs //using…
TriedAtLeast
  • 181
  • 1
  • 10
2
votes
3 answers

Unable to run az acr check-health command on MacOS

I am unable to run a health check using the Azure CLI. I am on MacOS Monterey. Below is the error: ➜ az acr check-health -n Docker daemon status: available Docker version: 'Docker version 20.10.12, build 459d0df, platform…