449 questions
52
votes
6
answers
99k
views
Safe ways to specify postgres parameters for healthchecks in docker compose
I'm using secrets to manage username, password, and dbname with a Docker stack using Postgres as a DB. I now want to use the healthcheck feature that Docker provides.
docker-compose.yml:
x-db-secrets: ...
24
votes
7
answers
36k
views
How to do a health check of a Spring Boot application running in a Docker Container?
I am running a Spring Boot application within a Docker container, using the Docker file to start the application within the container. How can I check the health of the Spring Boot application within ...
21
votes
2
answers
12k
views
Usehealthchecks vs Maphealthchecks
I've looked around from place to place but I am assuming one is an older way of doing things, but is there a more deeper difference to adding Health Check Endpoints to the middleware?
In Startup....
13
votes
3
answers
10k
views
What happens to a Docker Container when HEALTHCHECK fails
The docker docs say what a HEALTHCHECK instruction is and how to check the health of a container. But I am not able to figure out what happens when healthcheck fails. Like will the container be ...
11
votes
4
answers
28k
views
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{{....
10
votes
2
answers
10k
views
.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.
...
10
votes
2
answers
13k
views
Health check, ASP.NET Web API
In my work I was asked to implement health checks into an ASP.NET Web API 2 written in C#. I have searched but all the documentation is for ASP.NET Core and its implementation, does anyone know how to ...
9
votes
3
answers
19k
views
Set the 'start-interval' of a healthcheck in docker-compose.yml
I am deploying some services using Docker Compose. I want to check that my containers are healthy using healthcheck (see Docker Compose documentation here).
Let's consider the following code. It works ...
8
votes
5
answers
10k
views
AWS App Runner "Create Failed" on health check
I'm creating my first app on AWS App Runner. I have a simple nginx Docker image that works locally by serving html on localhost:8080.
When I try to deploy it, the result is "Create Failed". ...
8
votes
4
answers
30k
views
How to enable health in Spring Boot Actuator
I have to check whether my service / app works or not.
I've added dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator&...
7
votes
2
answers
12k
views
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 ...
7
votes
1
answer
5k
views
Using HealthCheckUI fails with exception "No service for type 'HealthChecks.UI.Core.Data.HealthChecksDb' has been registered."
I am using a .NET Core 3.1 Web app. The following packages are installed:
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" Version="2.2.0" />
<...
6
votes
1
answer
5k
views
Podman missing health check
i have an image that is based on an image with health check. In my case its the oracle database image container-registry.oracle.com/database/express:21.3.0-xe.
However, when I build my image with ...
6
votes
1
answer
2k
views
How to automatically restart Heroku dynos when application is failing?
Platforms such as Kubernetes have support for liveness and readiness probes: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
Basically, the (web) ...
5
votes
2
answers
4k
views
Enable Health Check in a app service via CLI
Is there any way to enable health check via cli in azure app services? I see that we can modify some configurations but not an option to enable/disable the feature.
Thank you!
5
votes
1
answer
3k
views
Trigger HealthCheck by code in aspnet core
I am working with microservice (multiple services) and want to have HealthCheck service which I can call and get health of all the running service. I wan't to trigger healthcheck for each of the ...
5
votes
1
answer
12k
views
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 ...
5
votes
1
answer
2k
views
Ocelot Gateway Healthcheck
I want to add an Ocelot Gateway healthcheck, but
This is nowhere to be found as default nuget package from AspNetCore.HealthChecks.??? . Is this not done usually?
When adding the healthcheck myself, ...
5
votes
1
answer
10k
views
Why is the "readinessState" detail of /health different from the readiness probe status?
In Spring-Boot 2.4, I have this problem with the Actuator health endpoint and readiness probe. When one of my custom key components is down, the /health/readiness endpoint says DOWN and the /health ...
5
votes
1
answer
5k
views
Docker HEALTHCHECK not working as expected
I have a php project to test healthchecks with three files in it:
index.php
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<h1>Hi from ...
4
votes
3
answers
12k
views
.NET Core Healthchecks UI not showing
I'm using .NET Core 3.1 and trying to set up health checks and running into an odd issue and need some help.
When I go to the basic health check URL (https://localhost:5001/hc), I get the following:
{
...
4
votes
2
answers
5k
views
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 ...
4
votes
1
answer
5k
views
What are webhooks used for in the Health Checks UI?
I am trying to learn more about .Net Core Health Checks.
I understand the concept of a web hook i.e. it notifies you that an event has occurred in a third party application. However, I do not ...
4
votes
1
answer
4k
views
Redis healthcheck from application
What is the proper way to healthcheck Redis from application?
Is there any analogue of sql: SELECT 1;?
4
votes
1
answer
5k
views
gRPC HealthCheck reports SERVING even when it is defined as NOT_SERVING
I am trying to create a server with two services and a HealthCheck in each one, so I can check them independently and use reflection to know the methods exposed in each one. I have hardcoded one ...