Hello,
I used the channelz to debug my gRpc Service. But I find that it returns empty channels, even if I send many requests.
Platform:
Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux
gRpc 1.27.2
The minimal code to reproduce:
# server.py
import grpc
from concurrent import futures
from grpc_channelz.v1 import channelz
def serve():
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
server.add_insecure_port('127.0.0.1:5000')
channelz.add_channelz_servicer(server)
server.start()
server.wait_for_termination()
if __name__ == '__main__':
serve()
And I see that the channelz is enabled default. How can I get the gRpc channel information?
Thanks.