troubleshooting

How to Call a Health Check from the Command Line Using gRPC CLI?

I'm trying to call a health check from the command line using grpc_cli, but I'm encountering issues. When I run ./grpc_cli ls localhost:5690, I get an error about ServerReflection service not being enabled. I'm not sure what method I should use to perform the health check, and I'm struggling to reverse engineer the health check method and path from the Rust code. Can someone provide hints or guidance on how to properly call a health check for my gRPC service?

Ri

Rick Otten

Asked on Oct 26, 2023

I've figured out how to call a health check from the command line using grpc_cli. The correct command is grpc_cli call localhost:5690 Check "" --protofiles=health.proto --noremotedb --proto_path=proto. This command successfully connects to my local gRPC server and returns a status of SERVING, indicating that the health check is functioning and the service is healthy.

Oct 27, 2023Edited by