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

how to view GCP HealthCheck logs

I created a Health Check in my GCP project for http traffic. I wanted to see the logs in Cloud Logging but I cant see any logs related to the created HealthCheck. I have logging enabled in HealthCheck. Can anyone help me?
0
votes
1 answer

How can I add a health check to check if my instances in aws autoscale established a successful connection with another independent instance

Currently I have multiple instances running under AWS autoscale group which polls messages from AWS SQS. My instances needs to establish connection with another instance before it start processing the incoming messages. Sometimes it happens that one…
0
votes
0 answers

How to @Inject implementation into an interface (CDI)

I'm working on an API (backend project) which uses some common/shared libraries containing the shared source codes. So, I'm working on a feature which will be added into all of ours backends, that's all for my context. This API is based on Jersey…
Manucci
  • 1
  • 4
0
votes
0 answers

Custom Health Indicator for multiple instances of a Spring Boot Application

I have a Spring Boot (2.3.3) application which is deployed on PCF and it has 5 instances running. For monitoring the health of this application, I added the custom health indicator where I implemented/override the ReactiveHealthIndicator of actuator…
0
votes
1 answer

How to perform DB write health checks in Ruby?

I want to setup MySQL database health check for a ruby app, basically the response should be { "read_success": true, "write_success": true, "exception": null } My health check should perform the following operation: Read a table from…
Aditya Verma
  • 428
  • 6
  • 22
0
votes
0 answers

When I close the socket,the usage of memory higher than I don't close this

I want to check the backends' healthy conditon, if a backend is dead, i will deactive this backend. I use a ThreadPool to start a thread, ping my backend using the ip + port, per 10s. By using Socket class, I don't close the socket at first. …
Felix.
  • 19
  • 2
0
votes
0 answers

Cancelling long-running Elasticsearch tasks times out

My _search requests had been gradually becoming slower and slower to the point of 504 gateway timeouts. Then I saw dozens of super-long running indices:data/read/search tasks with no end in sight so I tried to cancel them using POST…
0
votes
1 answer

Best practices to diagnose a object storage health check

I'm programming a health-check for a microservice that relies in a object storage (minio). My approach to diagnose if the object-storage is healthy is to call: bucketExists function, validating that the bucket exists and I have stable connection to…
gonzalo
  • 377
  • 2
  • 9
0
votes
1 answer

ECS curl healthcheck on a scheduled task

I need to call some ECS service periodically. Trying to achieve this with a scheduled ECS task. The task definition specifies a bare alpine-curl container, that leverages the healthcheck to curl the target service: CMD-SHELL,curl,--request…
Dondey
  • 267
  • 4
  • 13
0
votes
1 answer

How to get URL for current service health check?

I need some help with this item. The problem is as follows, I need to add a healthcheck to my service: // Add the health checks. services.AddHealthChecks() .AddSqlServer(Configuration["ConnectionStrings:MyConnectionString"]) …
Jalex23
  • 159
  • 1
  • 7
0
votes
1 answer

Endpoint configuration for AspNetCore HealthCheck UI at runtime

I can't find a solution to change endpoint configuration for Asp.net Core HealthCheck UI at runtime. It can be configured in appsettings.json, or in Startup, but I need to control endpoints at runtime. (e.g. based on integration events) Any idea?
0
votes
3 answers

AddWebhookNotification to call Method in Controller

I have this configured in my StartUp.cs: public void ConfigureServices(IServiceCollection services) { services .ConfigureEmail(Configuration) .AddHealthChecksUI(setupSettings: setup => { …
Nacho
  • 41
  • 5
0
votes
0 answers

How to configure Springboot's 2.x actuator in Spring Application(not a SpringBoot Application)?

My application is using Spring and not SpringBoot but I would like to perform health check using SpringBoot's 2.x Actuator. Did this combination ever work for any?
0
votes
0 answers

Not able to check the health of the flask application which inside the dockerised NGINX

I have the python flask application which i am using inside the NGINX and i have dockerised this image. By default flask application runs in 5000 port and NGINX in 80 port. If I run image in the container all the services are working fine. I am able…
Manjunath M
  • 588
  • 1
  • 6
  • 30
0
votes
1 answer

What simple Scenario healthcheck message JSONdate?

I have trouble in applying Java Spring boots with some rules: - If parameters values do not match the specifics possible values you should return HTTP status code 400("Bad Request") - Responses should have Content-Type header with approriate…
1 2 3
27
28