fix: remover seq do healthcheck
Some checks failed
Deploy QR Rapido / deploy-staging (push) Blocked by required conditions
Deploy QR Rapido / deploy-production (push) Blocked by required conditions
Deploy QR Rapido / test (push) Successful in 48s
Deploy QR Rapido / build-and-push (push) Has been cancelled

This commit is contained in:
Ricardo Carneiro 2025-08-24 19:54:08 -03:00
parent 346aa86216
commit 1dc1a5b897
2 changed files with 0 additions and 31 deletions

View File

@ -54,7 +54,6 @@ namespace QRRapidoApp.Controllers
checks = new checks = new
{ {
mongodb = ExtractCheckResult(healthReport, "mongodb"), mongodb = ExtractCheckResult(healthReport, "mongodb"),
seq = ExtractCheckResult(healthReport, "seq"),
resources = ExtractCheckResult(healthReport, "resources"), resources = ExtractCheckResult(healthReport, "resources"),
externalServices = ExtractCheckResult(healthReport, "external_services") externalServices = ExtractCheckResult(healthReport, "external_services")
}, },
@ -117,35 +116,6 @@ namespace QRRapidoApp.Controllers
} }
} }
/// <summary>
/// Seq logging service health check
/// GET /health/seq
/// </summary>
[HttpGet("seq")]
public async Task<IActionResult> GetSeqHealth()
{
try
{
var healthReport = await _healthCheckService.CheckHealthAsync(check => check.Name == "seq");
var seqCheck = healthReport.Entries.FirstOrDefault(e => e.Key == "seq");
if (seqCheck.Key == null)
{
return StatusCode(503, new { status = "unhealthy", error = "Seq health check not found" });
}
var statusCode = seqCheck.Value.Status == HealthStatus.Unhealthy ? 503 : 200;
var response = ExtractCheckResult(healthReport, "seq");
return StatusCode(statusCode, response);
}
catch (Exception ex)
{
_logger.LogError(ex, "Seq health check failed");
return StatusCode(503, new { status = "unhealthy", error = ex.Message });
}
}
/// <summary> /// <summary>
/// System resources health check /// System resources health check
/// GET /health/resources /// GET /health/resources

View File

@ -217,7 +217,6 @@ builder.Services.AddScoped<ExternalServicesHealthCheck>();
builder.Services.AddHealthChecks() builder.Services.AddHealthChecks()
.AddCheck<MongoDbHealthCheck>("mongodb") .AddCheck<MongoDbHealthCheck>("mongodb")
.AddCheck<SeqHealthCheck>("seq")
.AddCheck<ResourceHealthCheck>("resources") .AddCheck<ResourceHealthCheck>("resources")
.AddCheck<ExternalServicesHealthCheck>("external_services"); .AddCheck<ExternalServicesHealthCheck>("external_services");