grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

Grafana performance dashboard missing java CPU metrics

Open splett2 opened this issue 10 months ago • 1 comments

Hi, I was taking a look at the GRPC multi-language performance dashboard linked in https://grpc.io/docs/guides/benchmarking/, e.g. https://grafana-dot-grpc-testing.appspot.com/?orgId=1 and noticed that the CPU usage metrics for Java are missing. It would be interesting to know how java stacks up on that front.

splett2 avatar Jun 16 '25 17:06 splett2

The Java runner doesn't provide the CPU metrics. We'd need to set these fields: https://github.com/grpc/grpc-java/blob/922dc8a999531c91b0fa77386e0609745fae939f/benchmarks/src/main/proto/grpc/testing/stats.proto#L68

https://github.com/grpc/grpc-java/blob/922dc8a999531c91b0fa77386e0609745fae939f/benchmarks/src/main/proto/grpc/testing/stats.proto#L23

And get the data from like /proc or such.

kannanjgithub avatar Jun 19 '25 04:06 kannanjgithub