The counter grpc_io_server_received_messages_per_method having some value for the client-streaming / server-streaming methods.
What did you see instead?
The *_per_method counters are empty / no value. Only the #HELP... and #TYPE... shows up.
$ curl -s localhost:8888 | grep per_method
# HELP grpc_io_client_sent_bytes_per_method Sent bytes per method
# TYPE grpc_io_client_sent_bytes_per_method counter
# HELP grpc_io_client_received_bytes_per_method Received bytes per method
# TYPE grpc_io_client_received_bytes_per_method counter
# HELP grpc_io_client_sent_messages_per_method Number of messages sent
# TYPE grpc_io_client_sent_messages_per_method counter
# HELP grpc_io_client_received_messages_per_method Number of messages received
# TYPE grpc_io_client_received_messages_per_method counter
# HELP grpc_io_server_sent_bytes_per_method Sent bytes per method
# TYPE grpc_io_server_sent_bytes_per_method counter
# HELP grpc_io_server_received_bytes_per_method Received bytes per method
# TYPE grpc_io_server_received_bytes_per_method counter
# HELP grpc_io_server_sent_messages_per_method Number of messages sent
# TYPE grpc_io_server_sent_messages_per_method counter
# HELP grpc_io_server_received_messages_per_method Number of messages received
# TYPE grpc_io_server_received_messages_per_method counter
All other grpc_io_server_* metrics show up and have values.
Please answer these questions before submitting a bug report.
What version of OpenCensus are you using?
0.28.0
What JVM are you using (
java -version
)?openjdk version "11.0.2" 2019-01-15
What did you do?
Use
RpcViews.registerRealTimeMetricsViews()
with https://github.com/grpc/grpc-java/tree/v1.39.0/examplesI cloned the above repo, and applied this patch
Started the server with
Then the client
Curled the prometheus endpoint
What did you expect to see?
The counter
grpc_io_server_received_messages_per_method
having some value for the client-streaming / server-streaming methods.What did you see instead?
The
*_per_method
counters are empty / no value. Only the#HELP...
and#TYPE...
shows up.All other
grpc_io_server_*
metrics show up and have values.Additional context
N/A