Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Average latency without histograms #108

Open
baryluk opened this issue Jan 28, 2022 · 0 comments
Open

Average latency without histograms #108

baryluk opened this issue Jan 28, 2022 · 0 comments

Comments

@baryluk
Copy link

baryluk commented Jan 28, 2022

Is there a way to enable grpc_server_handling_seconds_sum and grpc_server_handling_seconds_count, so one can do aggregations and computations of average latency:

grpc_server_handling_seconds_sum{grpc_code="OK",grpc_method="PingList",grpc_service="mwitkow.testproto.TestService",grpc_type="server_stream"} 0.0003866430000000001
grpc_server_handling_seconds_count{grpc_code="OK",grpc_method="PingList",grpc_service="mwitkow.testproto.TestService",grpc_type="server_stream"} 1
...

without the full blown histograms (which do have storage cost on Prometheus)?

Even better, would be ability to have also metrics without grpc_code, but I believe this is tracked in a separate issue.

PS. Also for client calls the same.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant