Skip to main content
The Operator-managed BigPeerOtelCollector can record Big Peer metrics and receive OTLP/HTTP metrics and logs. It can also forward telemetry to an OpenTelemetry-compatible backend. BigPeerOtelCollector is available in Ditto Operator 1.0.0-experimental.1 and later. Install that chart version or a later version that includes the resource and its telemetry features before applying the examples below.

Record telemetry

Create a BigPeerOtelCollector in the Big Peer’s namespace. This example keeps the ten most recent archives on a 5 Gi volume and requires a default StorageClass:
Apply the resource and wait for it to become ready:
The Collector accepts OTLP/HTTP on port 4318, with metrics at /v1/metrics and logs at /v1/logs. To accept OTLP requests from outside the cluster, configure spec.network.telemetry: {} on the Big Peer. The Operator routes this endpoint when there is one eligible recording Collector in the namespace. Check the Big Peer’s TelemetryIngest condition if the route is unavailable. Archives contain the original telemetry payloads and are not redacted. Review archives before sharing them. Disabling recording retains its provisioned volume until the Collector resource is deleted.

Forward telemetry

To forward metrics and logs to an OTLP/HTTP backend, provide a Collector configuration in a ConfigMap. Replace the endpoint with your backend URL:
Enter the backend token at a hidden prompt and save it to a local file with owner-only permissions. Keep this file out of source control:
Create the Secret from that file. Save the ConfigMap shown above as telemetry-forwarding.yaml, then apply it:
Add an overlay alongside flightRecorder under spec in the Collector resource. The env mapping makes the Secret value available to the Collector as BACKEND_TOKEN:
Save the updated Collector manifest as telemetry.yaml, then apply it:
The Operator validates a configuration before activating it and keeps the last accepted configuration if a replacement is invalid. Check the Collector’s conditions with kubectl -n ditto get bigpeerotelcollector telemetry -o yaml.