Google Pub/Sub Receiver
OpenTelemetry Collector receiver · contrib distribution
This receiver gets OTLP messages from a Google Cloud Pubsub subscription.
- Component ID:
contrib-googlecloudpubsubreceiver - Name:
googlecloudpubsubreceiver - Type: receiver
- Distribution: contrib
- Repository:
opentelemetry-collector-contrib
Stability
| Level | Signals |
|---|---|
| beta | logs, metrics, traces |
Internal telemetry
| Metric | Type | Value type | Unit | Stability | Enabled | Attributes | Description |
|---|---|---|---|---|---|---|---|
receiver.googlecloudpubsub.encoding_error | sum (monotonic) | int | 1 | development | yes | 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. | |
receiver.googlecloudpubsub.stream_restarts | sum (monotonic) | int | 1 | development | yes | Number of times the stream (re)starts due to a Pub/Sub servers connection close 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. |