449 questions
-2
votes
1
answer
105
views
docker-compose dependency on one .NET service ruins its healthcheck
I have the following docker-compose.yaml to roll my application. When I comment depends_on on newseo service, containers start with no issue and all healthchecks are passed. However, when I add ...
1
vote
1
answer
44
views
Remove custom health indicator from default health endpoint, but keep it in a separate health group
I have a custom HealthIndicator:
@Component("notificationApiDeepCheck")
public class ApdpMainNotificationHealthIndicator implements HealthIndicator {
@Override
public Health health()...
1
vote
0
answers
136
views
MassTransit Kafka connectivity / health check
We're using MassTransit with Kafka for simple service-to-service communication. A service might read hundreds of records from a source and publish ("produce") the corresponding messages to ...
0
votes
0
answers
57
views
Terraform deployment - 502 Bad Gateway on ALB DNS; Target group EC2 instances failed health checks
I'm using Terraform to deploy a simple architecture on AWS:
3 auto-scaling EC2 instances (ASG) in a private subnet and install nginx on the servers
ALB in a public subnet
Public subnet and private ...
-1
votes
1
answer
88
views
ArgumentNullException in MySql HealthCheck before building Asp.Net Core application
I have a dotnet 8 asp core application and I'm trying to add a HealthCheck for my Azure Database using AspNetCore.HealthChecks.MySql nuget and retreiving connection string from Azure App Configuration ...
0
votes
1
answer
131
views
Can I reuse an existing HttpClient client with AspNetCore.HealthChecks.Uris
I'd like to add a Health Check for an API using AspNetCore.HealthChecks.Uris. Unfortunately, the endpoint that I need to hit requires auth, so the HttpClient that is used for this API is added like:
...
1
vote
1
answer
185
views
Simple Docker Compose for MariaDB status unhealthy; but database seems fine
The Docker Compose healthcheck fails, but I can login to database just fine. What have I missed?
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS ...
0
votes
0
answers
740
views
How to configure /readiness and /liveness probes correctly in Spring Boot?
I am configuring my Spring Boot 3.0.2 application with this setting:
management.endpoint.health.probes.enabled=true
Calling /actuator/health I am getting the following result:
"livenessState"...
0
votes
1
answer
710
views
Prevent noisy log events with ASP.NET Core Healthchecks and Serilog
I want to use healthchecks and Serilog (with request logging), but I get a flood of useless log events, as well as ones for the failure cases.
The v8 docs (and this) show there are differences between ...
-4
votes
1
answer
301
views
How to configure health check for kafka Kraft controller
How to configure health check for kafka Kraft controller ?
KAFKA_KRAFT_CLUSTER_ID: ulBKTl3BSeOGO3Hn8SOu-Q
KAFKA_CFG_PROCESS_ROLES: controller
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: ...
1
vote
0
answers
81
views
YARP health checks all fail with Unauthorized
I have four active health checks on each of four clusters using YARP as a load balancer.
ProbingCompleted() in the health policy is being fired and I'm recording results for each one. But all I ever ...
2
votes
1
answer
419
views
DBContext pooling isn't working with Interceptors and healthchecks
I had the need to optimze some sql queries with "OPTION (OPTIMIZE FOR UNKNOWN)".
I therefore added a custom Interceptor like this:
public class QueryHintInterceptor : DbCommandInterceptor
{
...
0
votes
2
answers
203
views
How to append the data into HTML file or HTML table using PowerShell
I am working on a health check PowerShell script that is generating an HTML file. Now, I want to update the solution where If I run the same script again (as a post check) it should create maybe ...
0
votes
1
answer
100
views
Will the ASP.NET Core HealthCheck middleware cause any performance issue for a Web API project?
Would the ASP.NET Core HealthCheck middleware that I installed for a Web API project cause any performance issues when running HTTP requests?
My questions:
Because HealthCheck() was added at startup ...
-1
votes
1
answer
74
views
How to use ansible to query local websites?
I am trying to health check a web host containing multiple websites. is is possible to cycle through different sites using the same port using the URI module?
I have this code :
# Check site directory ...
0
votes
1
answer
1k
views
Health check in docker-compose with nestjs app
I'm doing docker-compose with my nestjs app but the healthcheck did not work at all, is there something wrong with my config?
version: '3.1'
services:
backend:
image: my_image
ports:
- ...
0
votes
0
answers
934
views
Docker health check - python script
I created a script in python (healthcheck.py) to check some dependencies in my container.
Something like:
try:
connect with RabbitMQ
sys.exit(0)
except Exception:
sys....
0
votes
1
answer
150
views
Docker container stuck in starting can't be pinged
(I am using docker swarm) I have a docker container running a kafka instance with a healthcheck checking if a topic called hc has been created.
Because of that the docker node ps command shows the ...
1
vote
1
answer
1k
views
Add endpoints.MapHealthChecks in .NET 8 worker project
I have a Project Sdk="Microsoft.NET.Sdk.Worker" in .net8.0 and I want to use kestrel in this project to host some endpoints for healthcheck. I did this in .net 5.0 but it doesn't work in ....
0
votes
0
answers
84
views
Webhook is not working in HealthChecksUI in .NET Core 6
"HealthChecksUI": {
"HealthChecks": [
{
"Name": "My Health Checks",
"Uri": "/health"
}
],
"Webhooks": [
...
0
votes
0
answers
681
views
How to expose gRPC health check in headless .NET worker service?
I'm running a headless (i.e. no HTTP endpoints) .NET 8 worker service on k8s. I'd like to expose gRPC health checks which k8s can use for readiness/liveness probes. However, the examples only seem to ...
1
vote
1
answer
638
views
IHealthChecksBuilder.AddTypeActivatedCheck with access to IServiceProvider
Is there a way to use IHealthChecksBuilder.AddTypeActivatedCheck<T>() with a delegate function of Action<IServiceProvider>? I need to be able to access the service container and resolve a ...
0
votes
0
answers
132
views
Implementing health check for a website hosting in GCS bucket
I have hosted a static website in the GCS bucket and another website in Google Kubernetes Engine (GKE). I have configured the load balancer with two backends having a reserved IP associated with the ...
0
votes
0
answers
1k
views
Authorization error on the UI in HealthChecks.UI using the UI (/healthchecks-ui endpoint) but works fine when calling the JSON endpoint (/health)
UPDATE:
I definitely have some sort of deep-rooted authentication problem. This doesn't really have anything to do with the HeakthCheck.UI project I don't think.
I set up a simple test controller and ...
0
votes
2
answers
712
views
Azure static web app anonymous health check route
I have an Azure static web app with the staticwebapp.config.json like so:
"routes": [
{
"route": "/*",
"allowedRoles": ["authenticated"]
}
...