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

Docker Healthcheck doesn't work (always unhealthy)

I'm a bit new to docker and it's the first time I'm trying to add healthcheck. The docker application I'm using is the example from here: https://docs.docker.com/get-started/02_our_app/ I simply followed the steps to get a container with a service…
Orielno
  • 409
  • 2
  • 8
0
votes
0 answers

Error of healthCheck when the service is in IIS

I'm using the healthCheck to verify the state of the services but I have an error when this service is in IIS. In ConfigureServices: services.AddHealthChecksUI(s => { s.AddHealthCheckEndpoint("Validations",…
Kirtash666
  • 11
  • 2
0
votes
0 answers

Asp.Net Core HealthChecks HTTP Timeout

I have a healthcheck (https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-5.0) that merely runs a longer range of SQL queries , a lot of them, after 100 seconds it times out with an…
edelwater
  • 2,650
  • 8
  • 39
  • 67
0
votes
1 answer

Spring Boot custom endpoint health check

I'd like to create a custom endpoint which gives out some customized info. I know that there are two ways to achieve that: HealthIndicator and @Endpoint. But I'd like to put my endpoint under another path instead of default /health/xxx, moreover,…
user13566144
0
votes
1 answer

Can Supervisord Perform health check by calling Health API of a node.js process or by executing a shell command?

Can Supervisord Perform health check by calling Health API of a node.js process. Or can we build something via using supervisord events? Or alternatively can supervisord execute a command to perform health check?
Sana.91
  • 1,999
  • 4
  • 33
  • 52
0
votes
1 answer

AWS target group health check fails with 403

I have created a VPC with a public and a private subnet. I have launched an instance in each one of the subnets. The SG of the private instance allow SSH and HTTP from the SG of the public instance. The SG of the public instance allow SSH from my…
Amar Dev
  • 1,360
  • 2
  • 18
  • 38
0
votes
1 answer

nestjs enableCors with health check

My API cluster is under kubernetes. if (!configService.isProduction()) { app.enableCors(); } else { const whitelist = ['https://sub. domain .com', 'https:// www.domain .com', 'undefined']; app.enableCors({ …
AndreyKh.
  • 1
  • 1
0
votes
1 answer

The problem Docker PHP-Redis and healthcheck

I have two services. Redis and PHP. How to make php wait for the launch of redis and write about it.I tried using healthcheck-s but apparently I am not setting it up correctly. docker-compose.yml version: '2' services: php: build: …
0
votes
1 answer

How to read urls from appsettings.json for Asp.net core healthcheck?

I currently have the below implementation for my HealthCheck: This is my appsettings.json: "HealthCheckUrls": { "TestUrl": "http://test.com", "TestUrl2": "http://test2.com" } In my ConfigureService method, I have the below: …
avdeveloper
  • 449
  • 6
  • 30
0
votes
0 answers

Healthcheck metrics blade only shows "count" values

We are trying to test Azure's "Healthcheck status" to be used in an auto-scaled app service. We have an API endpoint which return status code 200 when it's OK and error 500 when it fails. The problem is that we don't see any indication on the…
JAC
  • 1
0
votes
1 answer

Configure HealthChecksUI for AspNetCore WebApi

I am setting up the HealthCheckUI for the ASPNETCore web api (.Net Core 3.1). However http://localhost:1234/healthchecks-ui keeps calling the default api http://localhost:1234/healthchecks-api instead of http://localhost:1234/health as…
beewest
  • 4,486
  • 7
  • 36
  • 63
0
votes
0 answers

How to check amount of in-flight messages in SQS with boto3?

I am trying to check the health of our SQS queues using boto3 for python. The health will be evaluated using AWS's quotas for in-flight messages: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html. I am…
0
votes
1 answer

.net 5.0 Integration Test, Health check endpoint not found

I'm trying to test the health check endpoint. I've implemented an integration test with .net core and WebApplicationFactory and TestServer, in order to test my API endpoints. I wrote test cases(xUnit) to test my API endpoints, the simple API…
Avi Siboni
  • 686
  • 7
  • 16
0
votes
1 answer

Masstransit 7.2.1 problem with custom health checks on program start

With MassTransit 7.2.1 I got a null pointer exeception in combination with custom health checks : The endpoint for /health was added: app.UseEndpoints( endpoints => { endpoints.MapControllers(); …
adaumann
  • 31
  • 5
0
votes
1 answer

Health Check checking data from EF DB causes threading issue

I am implementing a set of health check to a .net core 3.1 application with the AspNetCore.HealthCheck nuget package. Some of the health check have to reach a EFcore database to check if some data updated by other systems are present to validate…