Unknown processors type "resourcedetection" for "resourcedetection"

Viewed 39

Running OT Collector with image ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector:0.58.0

In config.yaml I have,

    processors:
      batch:
      resourcedetection:
        detectors: [ env ]
        timeout: 2s
        override: false

The collector is deployed as a sidecar but it keeps failing with collector server run finished with error: failed to get config: cannot unmarshal the configuration: unknown processors type "resourcedetection" for "resourcedetection" (valid values: [resource span probabilistic_sampler filter batch memory_limiter attributes])

Any idea as to what is causing this? I haven't found any relevant documentation/question

1 Answers

The Resource Detection Processor is part of the otelcol-contrib distro upstream and you'd hence would need to use otel/opentelemetry-collector-contrib:0.58.0 (or the equivalent on your container registry of choice) for this processor to be available in your collector.

Related