Skip to content

Collector fails to start with error in mongodb receiver invalid transport type "" #32199

Closed
@ashish121092

Description

@ashish121092

Using the following configuration for collector it fails to startup with error invalid configuration for mongodb receiver : invalid transport type "".

Collector image : otel/opentelemetry-collector-contrib:0.97.0

Collector configuration:

receivers:
  otlp:
    protocols:
      grpc:
      http:
  mongodb:
    hosts:
      - endpoint: 10.224.10.25:27017
      - endpoint: 10.224.10.28:27017
      - endpoint: 10.224.10.31:27017
    collection_interval: 60s
    initial_delay: 1s
    replica_set: rs0
    tls:
      insecure: true
      insecure_skip_verify: true

What is the expected behavior?

The mongodb receiver collects metrics from the hosts.

What is the actual behavior?

The collector fails to start with error invalid configuration for mongodb receiver. Invalid transport type "".

Error message : Error: invalid configuration: receivers::mongodb: invalid transport type ""; invalid transport type ""; invalid transport type ""
2024/04/05 17:05:32 collector server run finished with error: invalid configuration: receivers::mongodb: invalid transport type ""; invalid transport type ""; invalid transport type ""

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions