how can i use channelz in java?

60 views
Skip to first unread message

Elhanan Maayan

unread,
Jul 29, 2019, 4:32:05 PM7/29/19
to grpc.io
hi.. 
i'm trying to debug and see how come my channels keeps receving data after i call shutdown and await for terminate 

i've seen the go samples but there doesn't seem to be a RegisterChannelzServiceToServer method in the java api. 

i already have the docker image running and i'm assuming i need to configure it somehow to connect the channelz running on my machine. 
but i'm not sure how do use the channelz api and connect it to the app

Carl Mastrangelo

unread,
Jul 31, 2019, 2:13:43 PM7/31/19
to grpc.io
Hi!   I am the primary author of Channelz.    Right now Channelz is a gRPC service which means that it needs to be manually added to your server, and called using a gRPC client.    If you have a working server, just add ChannelzService to it.

At the moment, we have a very hacky Web UI for making gRPC-web calls to the server and building a little HTML, but it is more of a proof of concept.   You can also use grpc_cli to make the calls, and get data for specific channels.   I'm sorry the user experience around this isn't very good yet, but all the core functionality should work via the RPC interface. 

Elhanan Maayan

unread,
Nov 5, 2019, 12:24:59 PM11/5/19
to grpc.io
is there a way i can use channelz on client side alone? if the server is placed else where on a remote server?

Kun Zhang

unread,
Nov 8, 2019, 3:21:47 PM11/8/19
to grpc.io
Most of the information logged to channelz also goes to ChannelLogger's java logger at levels as low as FINEST. You can get them printed by lowering the log level for that class.
Reply all
Reply to author
Forward
0 new messages