For Java take a look at https://github.com/grpc/grpc-java/blob/master/services/src/main/java/io/grpc/protobuf/services/HealthStatusManager.java to see if that's what you're looking for.
On Sat, Aug 27, 2022 at 9:03 AM Siddhant <siddh...@myeglu.com> wrote: > hi all, > i am trying to add simple health check to my grpc application, but unable > to > the documentation are lacking any good example, maybe it's very trivial > and i am just not able to understand. > i followed the docs on > https://cloud.google.com/blog/topics/developers-practitioners/health-checking-your-grpc-servers-gke. > but i didn't understand what i need to do? > 2nd, > https://github.com/grpc-ecosystem/grpc-health-probe/#using-the-grpc-health-checking-protocol > here it say, "Most of the languages listed above provide helper functions > that hides implementation details. This eliminates the need for you to > implement the Check rpc yourself." but there's nothing like > HealthGrpc predefined. > from https://github.com/grpc/grpc/blob/master/doc/health-checking.md do i > need to declare this .proto file? i did and generated source files, but idk > what to do now. > i can't find any example or anything. maybe i didn't search enough, idk. > it would be very helpful if someone could guide me... > > thank you, > siddhant kumar > > links, > > https://cloud.google.com/blog/topics/developers-practitioners/health-checking-your-grpc-servers-gke > https://github.com/grpc-ecosystem/grpc-health-probe/ > > https://github.com/grpc/grpc-java/blob/master/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java > https://github.com/grpc/grpc/blob/master/doc/health-checking.md > > https://grpclib.readthedocs.io/en/latest/health.html > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to grpc-io+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/9b1a79bb-3e2d-451f-9315-b04036a79c6bn%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/9b1a79bb-3e2d-451f-9315-b04036a79c6bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2BPad6jSuNSNukrz_ECSMggeoEzQz2uqaw9y9zf4UGG%2BvrT4Gg%40mail.gmail.com.