-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docs(collector): update internal telemetry RPC metrics #9554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -375,7 +375,7 @@ naming conventions, resulting in metric names that looked like | |||||||||||||||||
| Versions 0.120.0 and later of the Collector use Prometheus 3.0 scrapers, so the | ||||||||||||||||||
| original `http*` and `rpc*` metric names with dots are preserved. The | ||||||||||||||||||
| [internal metrics](#lists-of-internal-metrics) on this page are listed in their | ||||||||||||||||||
| original form, such as`rpc.server.duration`. For more information, see the | ||||||||||||||||||
| original form, such as `rpc.server.call.duration`. For more information, see the | ||||||||||||||||||
| [Collector v0.120.0 release notes](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CHANGELOG.md#v01200). | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Lists of internal metrics | ||||||||||||||||||
|
|
@@ -453,30 +453,30 @@ files in the repository. | |||||||||||||||||
|
|
||||||||||||||||||
| #### Additional `detailed`-level metrics | ||||||||||||||||||
|
|
||||||||||||||||||
| | Metric name | Description | Type | | ||||||||||||||||||
| | ----------------------------------------------------- | ----------------------------------------------------------------------------------------- | --------- | | ||||||||||||||||||
| | `http.client.request.body.size` | Measures the size of HTTP client request bodies. | Counter | | ||||||||||||||||||
| | `http.client.request.duration` | Measures the duration of HTTP client requests. | Histogram | | ||||||||||||||||||
| | `http.server.request.body.size` | Measures the size of HTTP server request bodies. | Counter | | ||||||||||||||||||
| | `http.server.request.duration` | Measures the duration of HTTP server requests. | Histogram | | ||||||||||||||||||
| | `http.server.response.body.size` | Measures the size of HTTP server response bodies. | Counter | | ||||||||||||||||||
| | `otelcol_processor_batch_batch_`<br>`send_size_bytes` | Number of bytes in the batch that was sent. | Histogram | | ||||||||||||||||||
| | `rpc.client.duration` | Measures the duration of outbound RPC. | Histogram | | ||||||||||||||||||
| | `rpc.client.request.size` | Measures the size of RPC request messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.client.requests_per_rpc` | Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs. | Histogram | | ||||||||||||||||||
| | `rpc.client.response.size` | Measures the size of RPC response messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.client.responses_per_rpc` | Measures the number of messages sent per RPC. Should be 1 for all non-streaming RPCs. | Histogram | | ||||||||||||||||||
| | `rpc.server.duration` | Measures the duration of inbound RPC. | Histogram | | ||||||||||||||||||
| | `rpc.server.request.size` | Measures the size of RPC request messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.server.requests_per_rpc` | Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs. | Histogram | | ||||||||||||||||||
| | `rpc.server.response.size` | Measures the size of RPC response messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.server.responses_per_rpc` | Measures the number of messages sent per RPC. Should be 1 for all non-streaming RPCs. | Histogram | | ||||||||||||||||||
| | Metric name | Description | Type | | ||||||||||||||||||
| | ----------------------------------------------------- | --------------------------------------------------------------- | --------- | | ||||||||||||||||||
| | `http.client.request.body.size` | Measures the size of HTTP client request bodies. | Counter | | ||||||||||||||||||
| | `http.client.request.duration` | Measures the duration of HTTP client requests. | Histogram | | ||||||||||||||||||
| | `http.server.request.body.size` | Measures the size of HTTP server request bodies. | Counter | | ||||||||||||||||||
| | `http.server.request.duration` | Measures the duration of HTTP server requests. | Histogram | | ||||||||||||||||||
| | `http.server.response.body.size` | Measures the size of HTTP server response bodies. | Counter | | ||||||||||||||||||
| | `otelcol_processor_batch_batch_`<br>`send_size_bytes` | Number of bytes in the batch that was sent. | Histogram | | ||||||||||||||||||
| | `rpc.client.call.duration` | Measures the duration of outbound remote procedure calls (RPC). | Histogram | | ||||||||||||||||||
| | `rpc.client.request.size` | Measures the size of RPC request messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.client.response.size` | Measures the size of RPC response messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.server.call.duration` | Measures the duration of inbound remote procedure calls (RPC). | Histogram | | ||||||||||||||||||
| | `rpc.server.request.size` | Measures the size of RPC request messages (uncompressed). | Histogram | | ||||||||||||||||||
| | `rpc.server.response.size` | Measures the size of RPC response messages (uncompressed). | Histogram | | ||||||||||||||||||
|
Comment on lines
+464
to
+469
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIK, only the .call. metrics are available in the latest version of collector and semconv https://opentelemetry.io/docs/specs/semconv/rpc/rpc-metrics/
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, I've just confirmed experimentally that:
Not sure why that happened in two steps, or whether there is any replacement for the size metrics?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dug into this with AI's help, and the short answer is no, there is no replacement. The Semantic Conventions SIG deprecated the rpc size metrics because they had "ambiguous definitions and inconsistent implementation". So we'll need to update this page with a little more guidance. Thanks for pointing this out, @odubajDT! |
||||||||||||||||||
|
|
||||||||||||||||||
| > [!NOTE] | ||||||||||||||||||
| > | ||||||||||||||||||
| > The `http*` and `rpc*` metrics are not covered by the maturity levels below | ||||||||||||||||||
| > since they are not under the Collector SIG control. | ||||||||||||||||||
| > | ||||||||||||||||||
| > RPC metric names are version-dependent. For instance, Collector releases | ||||||||||||||||||
| > prior to 0.147.0 exposed `rpc.client.duration` and `rpc.server.duration` | ||||||||||||||||||
| > instead of `rpc.client.call.duration` and `rpc.server.call.duration`. | ||||||||||||||||||
| > | ||||||||||||||||||
|
tiffany76 marked this conversation as resolved.
|
||||||||||||||||||
| > The `otelcol_processor_batch_` metrics are unique to the `batchprocessor`. | ||||||||||||||||||
| > | ||||||||||||||||||
| > The `otelcol_receiver_`, `otelcol_scraper_`, `otelcol_processor_`, and | ||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.