otelcol.receiver.googlecloudpubsub
Community: This component is developed, maintained, and supported by the Alloy user community. Grafana doesn’t offer commercial support for this component. To enable and use community components, you must set the
--feature.community-components.enabledflag totrue.Refer to Community components for more information.
otelcol.receiver.googlecloudpubsub receives OpenTelemetry signals from a Google Cloud Pub/Sub subscription and forwards them to other otelcol.* components for processing or export.
Note
otelcol.receiver.googlecloudpubsubis a wrapper over the upstream OpenTelemetry Collectorgooglecloudpubsubreceiver. Bug reports or feature requests will be redirected to the upstream repository, if necessary.
You can specify multiple otelcol.receiver.googlecloudpubsub components by giving them different labels.
Usage
otelcol.receiver.googlecloudpubsub "<LABEL>" {
subscription = "projects/<PROJECT-ID>/subscriptions/<SUBSCRIPTION-NAME>"
output {
logs = [...]
metrics = [...]
trace = [...]
}
}Arguments
You can use the following arguments with otelcol.receiver.googlecloudpubsub:
Blocks
You can use the following blocks with otelcol.receiver.googlecloudpubsub:
No valid configuration blocks found.
output
RequiredThe output block configures a set of components to forward resulting telemetry data to.
The following arguments are supported:
You must specify the output block, but all its arguments are optional.
By default, telemetry data is dropped.
Configure the metrics, logs, and traces arguments accordingly to send telemetry data to other components.
debug_metrics
The debug_metrics block configures the metrics that this component generates to monitor its state.
The following arguments are supported:
disable_high_cardinality_metrics is the Alloy equivalent to the telemetry.disableHighCardinalityMetrics feature gate in the OpenTelemetry Collector.
It removes attributes that could cause high cardinality metrics.
For example, attributes with IP addresses and port numbers in metrics about HTTP and gRPC connections are removed.
Note
If configured,
disable_high_cardinality_metricsonly applies tootelcol.exporter.*andotelcol.receiver.*components.
flow_control
The flow_control block tunes how the receiver acknowledges Pub/Sub messages and bounds outstanding work.
The following arguments are supported:
Exported fields
otelcol.receiver.googlecloudpubsub doesn’t export any fields.