open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.94k stars 1.32k forks source link

error decoding 'receivers': unknown type: "mongodbatlas" #10034

Closed ashishstationcasinos closed 3 weeks ago

ashishstationcasinos commented 3 weeks ago

I did installed OpenTelemetry Collector on Centos 7 using the rpm -i otelcol_0.98.0_linux_amd64.rpm

I did Update the /etc/otelcol/config.yaml as below

receivers:
  mongodbatlas:
    public_key: xxxxxxx
    private_key: xxxxx

exporters:
  prometheus:
    endpoint: '0.0.0.0:9092'

service:
  pipelines:
    metrics:
      receivers: [mongodbatlas]
      exporters: [prometheus]

I did Restart the otelcol sudo systemctl restart otelcol

When I tail otelcol I see the Below Issue journalctl -f --unit otelcol

Apr 25 11:54:01 otelcol[1540966]: * error decoding 'receivers': unknown type: "mongodbatlas" for id: "mongodbatlas" (valid values: [zipkin nop otlp hostmetrics jaeger kafka opencensus prometheus]) Apr 25 11:54:01 systemd[1]: otelcol.service: main process exited, code=exited, status=1/FAILURE Apr 25 11:54:01 systemd[1]: Unit otelcol.service entered failed state. Apr 25 11:54:01 systemd[1]: otelcol.service failed. Apr 25 11:54:01 systemd[1]: otelcol.service holdoff time over, scheduling restart. Apr 25 11:54:01 systemd[1]: Stopped OpenTelemetry Collector. Apr 25 11:54:01 systemd[1]: start request repeated too quickly for otelcol.service Apr 25 11:54:01 systemd[1]: Failed to start OpenTelemetry Collector. Apr 25 11:54:01 systemd[1]: Unit otelcol.service entered failed state. Apr 25 11:54:01 systemd[1]: otelcol.service failed.

ashishstationcasinos commented 3 weeks ago

I did Upgrade Otelcol to 0.99.0. Still have the Same issue

TylerHelmuth commented 3 weeks ago

The mongodbatlasreceiver is not available in that distribution of the collector. You can see the list of available components here: https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol/manifest.yaml. You will need to use the contrib distribution of the collector, or build your own.