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

liveness probe for microservice without http

I have a microservice that is not a webservice. It is a Spring Boot (1.5) CommandLineRunner app that does not have a need to expose an API or do anything with http. However, I need to give it a liveness probe for Kubernetes. Can this be…
slashdottir
  • 7,835
  • 7
  • 55
  • 71
5
votes
1 answer

Adding Health Check to .NET Isolated Azure Function

I could not find any resources to add health checks to a HTTPTrigger function app, running in .NET 5.0 Isolated. static async Task Main() { var host = new HostBuilder() .ConfigureAppConfiguration(configurationBuilder => { …
5
votes
1 answer

How to check multiple database using AspNetCore.HealthChecks.SqlServer?

Currently I have checked for one database using these code: services.AddHealthChecks() .AddSqlServer( connectionString: Configuration.GetConnectionString("DefaultConnection"), healthQuery: "SELECT…
Steve
  • 2,963
  • 15
  • 61
  • 133
5
votes
2 answers

Multiple health check curls in docker health check

In order to ensure the health check of my container, I need to perform test calls to multiple URLS. curl -f http://example.com and curl -f http://example2.com Is it possible to perform multiple curl calls for a docker health check?
Appu
  • 185
  • 1
  • 3
  • 6
5
votes
2 answers

.NET Core HealthCheck - Add HealthCheck with dependency injection and parameters

I have different classes which inherit of a base class. The base class implements the interface IHealthCheck. Each class has a constructor which need a logger and parameters according to the class. For example : public ConnectionHealthCheck(ILogger…
Elsassmania
  • 145
  • 2
  • 16
5
votes
1 answer

ASP.NET Core 3.1 - Health Check UI is not working

i have developed an ASP.NET Core 3.1 MVC Application with customized Health Check. It's perfectly working fine as shown below. However, the UI is always empty as the /health-api always returns empty array. It's in ASP.NET 3.1 Core application…
Prawin
  • 1,158
  • 2
  • 12
  • 26
4
votes
1 answer

App Service health check is 0% even when in browser website returns 200

I have enabled health check with path "/" for App Service slot. This path in browser and using curl return 200 status code. But App Service health check status displays 0.00% (Healthy 0 / Degraded 1) How is this possible?
Grigory
  • 395
  • 3
  • 9
4
votes
0 answers

ASP.NET Health Checks: require authorization for both endpoint and UI

In the sample for ASP.NET Health Checks UI, only the UI requires authorization, but not the endpoint. Is that by intention? Why protect the UI if the endpoint is unprotected? Isn't all information available anonymously from the endpoint then? What…
Kristoffer Jälén
  • 4,112
  • 3
  • 30
  • 54
4
votes
2 answers

Is there a way to retrieve AWS Credentials information from AWS SDK?

I'm trying to setup healthchecks for some required services to my dotnet core 3.1 API and I'm struggling on Amazon DynamoDB check. We're using the Xabaril healthcheck packages and the DynamoDb one ask for a DynamoDBOptions that requires the…
4
votes
2 answers

Slack health check consistency

We are running a Slack webhook in our company using hooks.slack.com/services/myWebHookId, and we wish to know if its reachable every 30 seconds or so. According to Slack health status check, I can always go and check and see if Slack is online using…
Stempler
  • 1,309
  • 13
  • 25
4
votes
1 answer

Redis healthcheck from application

What is the proper way to healthcheck Redis from application? Is there any analogue of sql: SELECT 1;?
Rudziankoŭ
  • 10,681
  • 20
  • 92
  • 192
4
votes
1 answer

OpenFaaS : Receiving Timeout errors during health check of function Pod

Issue: We have added health check configuration to our function. However pod becomes Unhealthy due to timeout error in liveness and readiness checks and consequently getting restarted. However if I hit same health check url using CURL or browser it…
Sandeep
  • 71
  • 1
  • 1
  • 3
4
votes
3 answers

ElasticSearch Healthcheck on docker-compose failing

Elasticsearch healthcheck on docker-compose stops any dependent services because the container is always unhealthy. I see this when I run docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}" NAMES IMAGE …
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
4
votes
2 answers

How to health check a service in Github?

Struggling to configure a health check in Github workflows. The container is jboss/keycloak:12.0.4. Workflow is this: jobs: test: name: Test runs-on: ubuntu-latest services: keycloak: image: jboss/keycloak:12.0.4 …
Moritz Schmitz v. Hülst
  • 3,229
  • 4
  • 36
  • 63
4
votes
0 answers

AWS Elastic Beanstalk 100.0 % of the requests are failing with HTTP 5xx

See Health check, I did everything as per the requirements but It seems like some health problem. Can someone help here? 100.0 % of the requests are failing with HTTP 5xx. ELB processes are not healthy on all instances. ELB health is failing or not…
1
2
3
27 28