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
1 answer

Is there an easy way to health-check an Azure blob storage with multiple keys?

I am building an Azure web service using ASP.NET Core (C#, .NET 6). I have an Azure storage account. The storage account has two (2) access keys. The idea is that if the first key expires or needs to be changed, the application can seemlessly switch…
Claus Appel
  • 1,015
  • 10
  • 28
2
votes
1 answer

Unable to run a health check for mysql image on AWS ECS task

I have a cluster on AWS and it has a task that should run two containers. One of the containers called app has a dependency on my db container which is a mysql image and it should run when my db image is healthy. I have managed to write a…
2
votes
1 answer

GitLab health endpoint before integrating code

I’m new to deploying ML models and I want to deploy a model that contains several modules, each of which consist of “folders” containing some data files, .py scripts and a Python notebook. I created a project in GitLab and I’m trying to follow…
johnnydoe
  • 382
  • 2
  • 12
2
votes
0 answers

Health check for Azure app service generating HTTP error 404?

We thought it would be a good idea to enable the health check feature for our Episerver ASP.NET MVC web application in Azure. However, after doing so, the number of requests resulting in a 404 immediately rose dramatically for the path specified.…
Andvik
  • 119
  • 1
  • 12
2
votes
2 answers

health check for Python script inside a container

I have a python script running inside a container, sometime it fails. I would like to know if it is possible to create a healthcheck for that script and in case of failure delete this container and raise a new one.
Yanir
  • 95
  • 9
2
votes
2 answers

.NET Core health check of external services

I am using .NET Core 3.1 to develop a web application. It depends on several other external services (APIs written in Node.js). I would like to monitor the health of external services and use HealthChecks.UI to show the health on a separate page. I…
Sam Carlson
  • 1,891
  • 1
  • 17
  • 44
2
votes
2 answers

Docker health check always returning as unhealthy

Docker Healthcheck is failing, so its showing as unhealthy. Here is the Dcokerfile FROM python:3.8.5-alpine3.12 WORKDIR /app EXPOSE 8080 ENV FLASK_APP=app.py COPY . /app RUN pip install -r requirements.txt ENTRYPOINT [ "flask"] HEALTHCHECK…
Laxmikant
  • 2,046
  • 3
  • 30
  • 44
2
votes
1 answer

healthcheck using message broker

I'm currently running microservices in my company. They are not api servers, just processes that communicate with each other. So the implementation to communicate with each other is RabbitMQ. Now I'm trying to implement a health checker to know if a…
Alex Won
  • 177
  • 2
  • 11
2
votes
1 answer

Add health check for Nginx in docker file

I have a WebAssmebly Blazor App that runs locally, I deploy it to Azure K8s cluster using Helm, The app pod keeps restarting when I checked the logs its complaining about health check that are missing [21/Apr/2021:11:23:55 +0000] "GET…
2
votes
1 answer

Spring Boot Health Endpoint

I‘m looking for a way to change the header (add some things to it) of the health check of spring boot. I searched for this topic but I only found questions about custom health functions and so on (e.g. How to add a custom health check in spring boot…
newUser
  • 21
  • 1
2
votes
1 answer

Disable logs for health_check in uWSGI

I want to disable /health_check/ logs in my uwsgi.log file. I want the other url logs to be printed. This is my log format. logformat = "uwsgi:request %(addr) | %(method) %(uri) | %(status) | %(msecs) | %(ctime) | %(vszM)" I have tried the following…
Schumi
  • 21
  • 1
2
votes
1 answer

Azure service bus healthcheck status always returning unhealthy

I am trying to implement a health check in one of my application which is .Netcore service by refering to Readme.md file. Here is my code in startup.cs file services.AddHealthChecks() .AddAzureServiceBusQueue(connectionString:…
akhil
  • 1,649
  • 3
  • 19
  • 31
2
votes
0 answers

HealthCheck path /health not hitting but /healthz gets a hit in dotnetcore 3.1 WebApi project

I am using VS2019, netcore 3.1 WebApi Project. I am trying to setup a custom health check for my DB. I see a weird behaviour . The /health uri that I configure shows me a 500 internal server when I browse the endpoint . However, /healthz endpoint…
Shumail
  • 65
  • 1
  • 6
2
votes
1 answer

How to fix warning: "Application evaluated unhealthy due to redirection." on Azure Health Check Feature

I ran "Diagnose and solve problems" on Azure dashboard inside one of the app services, and then I got this critical risk alert: "Application evaluated unhealthy due to redirection.". Recommended actions is: If the application has HTTP to HTTPS…
Dika
  • 2,213
  • 4
  • 33
  • 49
2
votes
0 answers

AspNetCore Health Checks UI Reporting Wrongly

I've been having a little issue implementing AspNetCore.HealthChecks.UI correctly. I have two endpoints that run health checks using the "live" and "ready" as tags. Both endpoints work work as expected but after implementing the HealthChecksUI, The…
user2721794
  • 401
  • 1
  • 4
  • 20