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

Add gRPC metrics that allow real-time reporting.#212

Merged
songy23 merged 4 commits intocensus-instrumentation:masterfrom
songy23:grpc-streaming-stats
Nov 19, 2018
Merged

Add gRPC metrics that allow real-time reporting.#212
songy23 merged 4 commits intocensus-instrumentation:masterfrom
songy23:grpc-streaming-stats

Conversation

@songy23
Copy link
Copy Markdown
Contributor

@songy23 songy23 commented Nov 16, 2018

Supersedes #206.

Use plain accumulations for streaming bytes and message counts. We won't be able to associate wire bytes with messages with stream-based compression.

Ramon Nogueira and others added 2 commits November 16, 2018 14:28
For streaming RPCs, especially long-lived ones, we want to have
stats for each message as it is sent/received, rather than waiting
until the end of the RPC to record stats.
@songy23 songy23 force-pushed the grpc-streaming-stats branch from 05136a3 to 87e5546 Compare November 16, 2018 22:28
Copy link
Copy Markdown

@zhangkun83 zhangkun83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread stats/gRPC.md Outdated
| grpc.io/client/started_rpcs | 1 | The total number of client RPCs ever opened, including those that have not completed. |
| grpc.io/client/sent_messages_per_method | 1 | Total messages sent per method. |
| grpc.io/client/received_messages_per_method | 1 | Total messages received per method. |
| grpc.io/client/sent_bytes_per_method | By | Total bytes sent per method, recorded for each message. |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily recorded for each message. Maybe "recorded real-time as bytes are sent".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG, updated.

@songy23 songy23 force-pushed the grpc-streaming-stats branch from e1df38f to 6e2dc68 Compare November 16, 2018 22:44
@songy23 songy23 changed the title Add measures that are updated for each message. Add gRPC metrics that allow real-time reporting. Nov 16, 2018
@songy23 songy23 force-pushed the grpc-streaming-stats branch from 6e2dc68 to 709ecc4 Compare November 16, 2018 23:59
@songy23
Copy link
Copy Markdown
Contributor Author

songy23 commented Nov 19, 2018

PTAL @bogdandrutu

Comment thread stats/gRPC.md Outdated
| grpc.io/client/roundtrip_latency | grpc.io/client/roundtrip_latency | distribution | grpc_client_method |
| grpc.io/client/completed_rpcs | grpc.io/client/roundtrip_latency | count | grpc_client_method, grpc_client_status |
| grpc.io/client/started_rpcs | grpc.io/client/started_rpcs | count | grpc_client_method |
| grpc.io/client/sent_messages_per_method | grpc.io/client/sent_messages_per_method | count | grpc_client_method |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this are necessary in the default views. I would put them in the extra views for the moment. We probably want to have these measurements not enabled by default to avoid unnecessary overhead for unary calls (probably the majority of the calls).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I agree. Made them optional for the moment, and add an FAQ about these views.

@songy23
Copy link
Copy Markdown
Contributor Author

songy23 commented Nov 19, 2018

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants