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

How to translate a dockerfile into a XML for jib plugin of Maven, specially the "RUN" and "HEALTHCHECK" part?

I have a dockerfile which is like: # openjdk:11-jre include 'wget' and 'curl', while openjdk:11-jre-slim does not FROM openjdk:11-jre ENV VERSION=2.28.1 ENV DIR=/home/wiremock ENV JAR=wiremock-jre8-standalone-$VERSION.jar ENV FULLPATH=$DIR/$JAR #…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
0
votes
1 answer

Simulating TCP connection error for health-check

I'm working on configuring health-check for upstream services using kong gateway, I want to simulate having a upstream service where I can make it periodically serve traffic over a port and then periodically give TCP connection error, so that I can…
Ashay Fernandes
  • 353
  • 4
  • 14
0
votes
1 answer

How should I approach the implementation of health checks in Azure for my application?

I would like to know how to create health checks for some Azure services? Is this possible? I thought of creating time-triggered Azure functions that would test the end-to-end connectivity of for example my Azure storage, Azure map, and Event Hub…
0
votes
0 answers

Discovery Client not initialized for Spring Health Actuator

I am trying to run a Spring boot application which is OpenAPI Generated. I have set the following configurations in my application.yml # Actuator Configuration management: endpoints: web: exposure: include: "*" endpoint: …
Ayman Patel
  • 564
  • 2
  • 8
  • 23
0
votes
1 answer

Why is my Azure node.js app becoming unresponsive?

I recently deployed a Node.js Backend Service to Azure and have the following problem. The service becomes unresponsive after a certain amount of time, and only comes back to life if a external request is sent. The problem is, that it takes about 3…
skudnu
  • 51
  • 1
  • 6
0
votes
1 answer

Docker compose - Check if mongodb port is available and only then start NodeJS container

I have a simple NodeJS app with connection to mongodb which are all started using docker compose. The problem it that if mongo is not initiated yet - NodeJS app throws an error that it cannot connect to mongodb: nodejs-app | Server…
Vasyl Stepulo
  • 1,493
  • 1
  • 23
  • 43
0
votes
1 answer

network check keeps failing

I am trying to get the network module I imported into the health_checks.py to pass everything is ok but it keeps failing. The module works in its own right, but I'm trying to get the check_localhost and check_cpu_usage to print and it's still not…
anon
  • 19
  • 1
  • 6
0
votes
1 answer

consul proxy change health endpoint

I have deployed a consul proxy on a different host than 'localhost' but consul keeps on checking health on 127.0.0.1. Config of the service and it's sidecar: service { name = "counting" id = "counting-1" port = 9005 address = "169.254.1.1" …
Rumesh Madhusanka
  • 1,105
  • 3
  • 12
  • 26
0
votes
0 answers

Implement HealthChecks for long running process .Net Core

I have a long-running process: IHostedService. It runs all day long calling different external apis (services) to pull in data. I would like to get notified if during this process any of these external services failed/exceptions got thrown, the…
ShaneKm
  • 20,823
  • 43
  • 167
  • 296
0
votes
1 answer

Do oauth2 flow enpoint also perform the health check of google action?

I have followed the requirements of Health Checks to return 200 code in my webhook endpiont, but it still shows unhealthy. Does my OAuth2 endpoint also need to be implemented? If so, how? Since doing so would break the OAuth2 standard. My service…
0
votes
1 answer

Spring Boot Health Check for different Modules

I have created a program with multiple modules, of which 4 of them have rest controllers. I want to create a health check using spring boot actuator in order to have a detailed check on all dependencies of a module, including the modules with a rest…
Ali Zain
  • 1
  • 2
0
votes
1 answer

Python Script that takes in Linux Commands to return Server Health

For my job, I'm developing a small script that users can run to essentially do a check of log files for errors. I'm familiar with both Python and cmd prompts but not running one inside the other. I read around quite a bit but can't really find the…
Gizmo
  • 21
  • 1
  • 1
  • 8
0
votes
2 answers

How to add a health check in .NET 5 for MassTransit Amazon SQS?

I have a working and running .NET 5 application. There is a REST API to POST data. When data is posted, a MassTransit message is published. Using the AWS Explorer, I can clearly see that if the topic named customerinfo.fifo does not exist, it is…
Daan
  • 2,478
  • 3
  • 36
  • 76
0
votes
1 answer

Azure Application Gateway - check health on subset of backend nodes

I have a service fabric cluster that hosts some number of identical applications. The application has two main components - a stateless service that hosts web api (it listens on unique port number) and an actor service. In front of it there is an…
0
votes
1 answer

.NET Core health check: Unable to find the required services

I am trying to register a health in a sample .NET Core application check using the code in Startup.cs: public void ConfigureServices(IServiceCollection services) { services.AddControllers(); // Adding healthcheck in…
RiddleMeThis
  • 851
  • 1
  • 8
  • 18