Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion receiver/googlecloudpubsubreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
19 changes: 9 additions & 10 deletions receiver/googlecloudpubsubreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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