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

Average latency without histograms #108

Open
@baryluk

Description

@baryluk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions