How zenoweed/opentelemetry-collector-contrib works
OpenTelemetry Collector Contrib is a collection of optional Collector components and utilities, rather than one standalone application. Its principal user workflow is assembling a Collector distribution with chosen components to handle telemetry; the README documents custom distributions but does not specify runtime wiring among these modules. The graph therefore groups representative receiver, processing, export, extension, and operational capabilities. Source excerpts show a Fluent Forward receiver handing events to a downstream consumer and the Prometheus receiver exposing an API; other relationships are omitted where the available evidence does not establish them.
Main entry points: server.go Fluent Forward · handler.go AWS Lambda · client.go PostgreSQL receiver · manager.go Prometheus API
Components 16
Telemetry ingestion
- Fluent Forward
receiver/fluentforwardreceiver/server.go - AWS Lambda
receiver/awslambdareceiver/handler.go - PostgreSQL receiver
receiver/postgresqlreceiver/client.go - Prometheus API
receiver/prometheusreceiver/internal/apiserver/manager.go - Target allocator
receiver/prometheusreceiver/internal/targetallocator/manager.go
Processing and routing
- Trace grouping
processor/groupbytraceprocessor/storage_subtrace.go - Log pipelines
pkg/stanza/pipeline/pipeline.go - Connectors
connector
Telemetry export
- Alertmanager export
exporter/alertmanagerexporter/alertmanager_exporter.go - Splunk HEC export
exporter/splunkhecexporter/client.go
Extensions and storage
- Azure log encoding
extension/encoding/azureencodingextension/internal/unmarshaler/logs/category_storage.go - Tail storage
extension/tailstorage/pebbletailstorageextension/storage.go
Operational components
- OpAMP supervisor
cmd/opampsupervisor/supervisor/supervisor.go - Telemetry generator
cmd/telemetrygen/main.go
Other components
- Collector user
- Custom distribution
Connections 15
- Collector user → Custom distribution: chooses components
- Fluent Forward → Custom distribution: provides receiver
- AWS Lambda → Custom distribution: provides receiver
- PostgreSQL receiver → Custom distribution: provides receiver
- Prometheus API → Custom distribution: provides receiver
- Target allocator → Custom distribution: provides receiver support
- Trace grouping → Custom distribution: provides processor
- Log pipelines → Custom distribution: provides pipeline API
- Connectors → Custom distribution: provides connectors
- Alertmanager export → Custom distribution: provides exporter
- Splunk HEC export → Custom distribution: provides exporter
- Azure log encoding → Custom distribution: provides extension
- Tail storage → Custom distribution: provides extension
- OpAMP supervisor → Custom distribution: provides supervisor
- Telemetry generator → Collector user: generates telemetry