diff --git a/receiver/googlecloudpubsubreceiver/documentation.md b/receiver/googlecloudpubsubreceiver/documentation.md index 97839553911cc..8b5ad0edbcd9a 100644 --- a/receiver/googlecloudpubsubreceiver/documentation.md +++ b/receiver/googlecloudpubsubreceiver/documentation.md @@ -11,7 +11,7 @@ The following telemetry is emitted by this component. Number of times a message couldn't be decoded by the configured encoder The receiver reads messages from Google Cloud Pub/Sub and tries to decode the message using the configured -encoder. Each time a message fails to decoded the counter is increased. +encoder. Each time a message fails to decoded the counter is increased. | Unit | Metric Type | Value Type | Monotonic | diff --git a/receiver/googlecloudpubsubreceiver/metadata.yaml b/receiver/googlecloudpubsubreceiver/metadata.yaml index dc839a3e32d09..9360e1b4e482d 100644 --- a/receiver/googlecloudpubsubreceiver/metadata.yaml +++ b/receiver/googlecloudpubsubreceiver/metadata.yaml @@ -10,27 +10,27 @@ status: telemetry: metrics: - receiver.googlecloudpubsub.stream_restarts: + receiver.googlecloudpubsub.encoding_error: enabled: true - description: Number of times the stream (re)starts due to a Pub/Sub servers connection close + description: Number of times a message couldn't be decoded by the configured encoder unit: "1" sum: value_type: int monotonic: true extended_documentation: | - The receiver uses the Google Cloud Pub/Sub StreamingPull API and keeps a open connection. The Pub/Sub servers - recurrently close the connection after a time period to avoid a long-running sticky connection. This metric - counts the number of the resets that occurred during the lifetime of the container. - receiver.googlecloudpubsub.encoding_error: + The receiver reads messages from Google Cloud Pub/Sub and tries to decode the message using the configured + encoder. Each time a message fails to decoded the counter is increased. + receiver.googlecloudpubsub.stream_restarts: enabled: true - description: Number of times a message couldn't be decoded by the configured encoder + description: Number of times the stream (re)starts due to a Pub/Sub servers connection close unit: "1" sum: value_type: int monotonic: true extended_documentation: | - The receiver reads messages from Google Cloud Pub/Sub and tries to decode the message using the configured - encoder. Each time a message fails to decoded the counter is increased. + The receiver uses the Google Cloud Pub/Sub StreamingPull API and keeps a open connection. The Pub/Sub servers + recurrently close the connection after a time period to avoid a long-running sticky connection. This metric + counts the number of the resets that occurred during the lifetime of the container. tests: config: @@ -43,4 +43,3 @@ tests: ignore: # See https://github.com/census-instrumentation/opencensus-go/issues/1191 for more information. top: go.opencensus.io/stats/view.(*worker).start -