gRPC ChannelzΒΆ
What is gRPC Channelz?ΒΆ
Design Document gRPC Channelz
Module ContentsΒΆ
Channelz debug service implementation in gRPC Python.
- class grpc_channelz.v1.channelz.ChannelzServicer[source]ΒΆ
Servicer handling RPCs for service statuses.
- static GetServerSockets(request, context)[source]ΒΆ
Gets all server sockets that exist in the process.
- grpc_channelz.v1.channelz.add_channelz_servicer(server)[source]ΒΆ
Add Channelz servicer to a server.
Channelz servicer is in charge of pulling information from C-Core for entire process. It will allow the server to response to Channelz queries.
The Channelz statistic is enabled by default inside C-Core. Whether the statistic is enabled or not is isolated from adding Channelz servicer. That means you can query Channelz info with a Channelz-disabled channel, and you can add Channelz servicer to a Channelz-disabled server.
The Channelz statistic can be enabled or disabled by channel option βgrpc.enable_channelzβ. Set to 1 to enable, set to 0 to disable.
This is an EXPERIMENTAL API.
- Parameters:
server β A gRPC server to which Channelz service will be added.