Interview Prep/Monitoring & Observability/Tracing, OpenTelemetry and CloudWatch

Collector fails to start: `error decoding 'exporters': unknown type: "loki"`

IntermediateTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer

Likely causes → The component isn't included in the distribution (core vs contrib), or it was removed/deprecated (the loki exporter was replaced by sending OTLP to Loki 3.x).

Diagnose → otelcol-contrib components lists available components.

Fix → Use the contrib image (otel/opentelemetry-collector-contrib), or switch to the supported path (otlphttp exporter to Loki's /otlp endpoint).

Prevent → Pin collector versions and read changelogs; build a custom distro with ocb for exactly what you need.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing, OpenTelemetry and CloudWatch