Cloud

open_telemetry_collector

Sends metrics to one or more OpenTelemetry Collector endpoints.

Exports Redpanda Connect metrics to one or more OpenTelemetry Collector endpoints, encoded with the OpenTelemetry metrics protocol (OTLP). Any collector endpoint that supports OTLP can receive them.

You can configure HTTP and gRPC endpoints at the same time. Every configured endpoint receives the same metrics, which is useful for redundancy or for sending metrics to several observability platforms.

  • Common

  • Advanced

metrics:
  open_telemetry_collector:
    service: benthos
    http: [] # No default (required)
    grpc: [] # No default (required)
metrics:
  open_telemetry_collector:
    service: benthos
    http: [] # No default (required)
    grpc: [] # No default (required)
    tags: {}

Fields

grpc[]

A list of grpc collectors.

Type: array<object>

grpc[].address

The endpoint of a collector to send events to.

Type: string

# Examples:
address: localhost:4317

grpc[].secure

Connect to the collector with client transport security

Type: bool

Default: false

http[]

A list of http collectors.

Type: array<object>

http[].address

The endpoint of a collector to send events to.

Type: string

# Examples:
address: localhost:4318

http[].secure

Connect to the collector over HTTPS

Type: bool

Default: false

service

The name of the service in metrics.

Type: string

Default: benthos

tags

A map of tags to add to all exported spans and metrics.

Type: object<string>

Default: {}

Usage

The most common setup uses a local OpenTelemetry Collector running as a sidecar or daemon, which then forwards metrics to your observability backend:

metrics:
  open_telemetry_collector:
    service: my-service-name
    grpc:
      - address: localhost:4317

For production deployments with remote collectors, enable TLS:

metrics:
  open_telemetry_collector:
    service: my-service-name
    grpc:
      - address: otel-collector.example.com:4317
        secure: true

Use the tags field to add labels to all exported metrics for filtering and grouping in your observability platform:

metrics:
  open_telemetry_collector:
    service: my-service-name
    grpc:
      - address: localhost:4317
    tags:
      environment: production
      cluster: kafka-01