Skip to content

Unable to Ingest Metadata from Bitnami Mongo Db #125

@mavenzer

Description

@mavenzer

Hi all,

We have deployed the ODD platform in Kubernetes, Now we are trying to ingest metadata from MongoDB(which is deployed using bitnami charts). We have used the below collector configs for the same:
ODD_PLATFORM_VERSION= 0.27.7
ODD_COLLECTOR_VERSION = 0.1.58
BITNAMI_MONGODB_VERSION = 7.0.0

platform_host_url: "URL_OF_ODD_PLATFORM"
default_pulling_interval: 10
token: "TOKEN_FOR_THE_COLLECTOR"
- type: mongodb
    name: my_mongodb_adapter
    database: "sample_db"
    host: "HOST/SERVICE_FOR_THE_MONGODB"
    port: "27017"
    user: "data_base_username"
    password: !ENV ${MONGODB_ROOT_PASSWORD}
 

We have also used to some additional parameter which is required to establish communication to MongoDB using COMPASS(protocol: "SCRAM-SHA-256" replicaSet: "replica-set-name" directConnection: true

But none of the above methods are working as of now, The error which we are getting is as follows:

2025-02-24 13:40:38.563 | INFO | odd_collector_sdk.job:log_execution:21 - [my_mongodb_adapter] collecting metadata started.
ERROR:root:MongoDB Error: Invalid URI scheme: URI must begin with 'mongodb://' or 'mongodb+srv://'
ERROR:root:Failed retrieve data from Database

The collector is able to create a data-source based on the collector config but not able to ingest the meta-data from the MongoDB. Any ways to resolve the errors or solve the problem will be really helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions