Can you access the health check API from
# spicedb
t
Can you access the health check API from the spicedb grpc clients? I'm specifically using the python client
v
yes you can, it's a standard gRPC health endpoint. You can also access it via rest on
/healthz
if you have the http gateway enabled
t
Follow up question on this thread, how do I specify the service names? I'm doing
client.Check(HealthCheckRequest(service=name))
, but all of the following return `grpc_message:"unknown service"`: -
name = "PermissionsService"
-
name = "permission_service.PermissionsService"
-
name = "v1.permission_service.PermissionsService"
-
name = "api.v1.permission_service.PermissionsService"
-
name = "authzed.api.v1.permission_service.PermissionsService"
It does work if I don't specify a service though, so I know it's at least connecting
v
authzed.api.v1.PermissionsService
I don't think you need to look for the individual services though, SpiceDB does not give you that level of granularity. There is one single health checker, and when it fails, all services are set to fail, and when it succeeds, all services are set to as success
99 Views