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
2
votes
2 answers

HTTP health check - GET or HEAD and 200 or 204 response?

I’m wondering if there is a general convention for this: When implementing a HTTP health check for any given application where you are not interested in any response body but just the status code, what would the default/expected endpoint look…
silent
  • 14,494
  • 4
  • 46
  • 86
2
votes
0 answers

Health-check on enqueue consumer

How can i make a health-check for liveness and readiness probe for a php-enqueue consumer? The consumer is a long running process and is started with: php ./bin/console enqueue:consume --setup-broker Usually when the process goes down it gets…
ivoba
  • 5,780
  • 5
  • 48
  • 55
2
votes
1 answer

healthcheck and application server with dependencies

I have an application server which connects to two other services: Postgres and CouchDB. The application server is deployed to autoscaling group which requires it to have a health endpoint: /health. Now, /health endpoint returns 500 if one of the…
kharandziuk
  • 12,020
  • 17
  • 63
  • 121
2
votes
2 answers

Kubernetes on Azure - liveness and readiness probes failing - Liveness probe failed with connect: connection refused

I'm a noob with Azure deployment, kubernetes and HA implementation. When I implement health probes as part of my app deployment, the health probes fail and I end up with either 503 (internal server error) or 502 (bad gateway) error when I try…
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
2
votes
1 answer

.NET Core Healthchecks UI not showing

I'm using .NET Core 3.1 and trying to set up health checks and running into an odd issue and need some help. When I go to the basic health check URL (https://localhost:5001/hc), I get the following: { "status": "Healthy", "errors": [ { …
Dan Champagne
  • 890
  • 2
  • 17
  • 37
2
votes
1 answer

See .NET Health Checks detail

I've enabled .NET Health Checks on my app. I give the check a name and add a message depending on the outcome of the check. The below example shows a check called Test Health Check and the message Server Is Healthy! if a healthy result is returned.…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
2
votes
2 answers

When would you use filter health checks?

I was reading this article https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-3.1#filter-health-checks and couldn't visualize a practical use case for using filter health checks. In a real world situation,…
2
votes
2 answers

Docker container healthcheck stop unhealthy container

I have a docker container that has a healthcheck running every 1 min. I read that appending "|| kill 1" to the healthcheck in dockerfile can stop the container after healthcheck fails, but it does not seem to be working for me and I cannot find an…
Azzaronn
  • 147
  • 1
  • 3
  • 10
2
votes
1 answer

Health Check For C# Hosted Service Console Application

I have 2 hosted service and have to check each others health condition. How can i implement health check in C# Console Application (Hosted Service). what are the parameter to check the health of an Hosted Service.
Arshit Singh
  • 103
  • 4
  • 14
2
votes
1 answer

Basic auth for healthchecks in asp.net core

I have an ASP.NET Core 3.1 API which already uses OAuth for authorization. I added healthchecks middleware and I would like to make it protected with basic auth so that client which check the health status can simply provide credentials to check the…
2
votes
1 answer

Docker Healthcheck not running powershell commands?

I am working with Docker and I have created a Dockerfile which converts my dotnet application into an image. I can then run this image and everything is working fine. I am using mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1809 AS base. Now, I…
BramCoding
  • 395
  • 2
  • 11
2
votes
2 answers

AWS load balancer health check with api key

When doing health check in AWS application load balancer, I need set health check to path /service_name/health But it also need be accessed with api key (a header) How can I implement this type of health check?
Bill
  • 2,494
  • 5
  • 26
  • 61
2
votes
3 answers

adding health check to docker container

I am trying to add a health check to my docker container so in my Dockerfile I added this line HEALTHCHECK CMD curl --fail http://localhost:8080/health || exit 1 based loosely on this tutorial:…
corneliu
  • 656
  • 13
  • 37
2
votes
3 answers

how to install curl for health check of spring boot jib docker image?

You define jib image in pom file, but I need curl command-line to be running on the container to do health check on aws ecs. How can I add curl into that image?
PainPoints
  • 461
  • 8
  • 20
2
votes
3 answers

How to set up a health check on an individual GCE - Internal IP

I want to create an uptime health check for an application running on GCE with Internal IP. I've noticed that Uptime checks in GCP only supports external IP and health checks only support a GCE with Load Balancer or a Managed Instance group. Is…