mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-03 21:03:48 +00:00
Add healthcheck on System Resource (#22974)
* Add healthcheck on System Resource * Exclude from filtering
This commit is contained in:
parent
1b36d74570
commit
5c4e3f365b
@ -469,4 +469,15 @@ public class SystemResource {
|
|||||||
public ValidationResponse validate() {
|
public ValidationResponse validate() {
|
||||||
return systemRepository.validateSystem(applicationConfig, pipelineServiceClient, jwtFilter);
|
return systemRepository.validateSystem(applicationConfig, pipelineServiceClient, jwtFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/health")
|
||||||
|
@Operation(
|
||||||
|
operationId = "healthCheck",
|
||||||
|
summary = "Health check endpoint",
|
||||||
|
description = "Simple health check endpoint that returns 200 OK",
|
||||||
|
responses = {@ApiResponse(responseCode = "200", description = "Service is healthy")})
|
||||||
|
public Response healthCheck() {
|
||||||
|
return Response.ok("OK").build();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,6 +91,7 @@ public class JwtFilter implements ContainerRequestFilter {
|
|||||||
"v1/system/config/authorizer",
|
"v1/system/config/authorizer",
|
||||||
"v1/system/config/customUiThemePreference",
|
"v1/system/config/customUiThemePreference",
|
||||||
"v1/system/config/auth",
|
"v1/system/config/auth",
|
||||||
|
"v1/system/health",
|
||||||
"v1/users/signup",
|
"v1/users/signup",
|
||||||
"v1/system/version",
|
"v1/system/version",
|
||||||
"v1/users/registrationConfirmation",
|
"v1/users/registrationConfirmation",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user