MongoDB metadata collector

concept australia Updated Sep 10, 2026 1 min read mongodb-metadata-collector.md
Raw file servicenow.com

MongoDB metadata collector provides read-only access to metadata from a MongoDB account.

The MongoDB collector harvests metadata from MongoDB instances (clusters), databases, collections, indexes, search indexes, and document fields. The collector supports harvesting nested fields for Document and Object field types. The collector captures relationship information between instances, databases, collections, document fields, search indexes, and indexes.

Authentication supported

The MongoDB collector supports the following authentication methods:

  • Username and password authentication (SCRAM)
  • X.509 authentication
  • AWS Authentication

Metadata cataloged

The MongoDB collector catalogs the following information:

Object Information cataloged
MongoDB MongoDB (instance, cluster) name, MongoDB (instance, cluster) version, Is Debug Mode
MongoDB Database Database Name, Size On Disk, Is Empty, Views Number, Collections Number, Average Database Object Size, Data Size, Storage Size, Total Free Storage Size, Database Indexes Number, Database Indexes Size
MongoDB Collection (including Materialized View) Collection Name, Documents Count, Collection Size, Average Object Size, Orphan Documents Number, Storage Size, Collection Free Storage Size, Total Index Size, Index Number, Collection Total Size, Is Capped, Capped Collection Maximum Size, Capped Documents Maximum Number
MongoDB View View Name
MongoDB Collection Field Field Name
MongoDB Index Index Name, Index Size, Is Unique, Default Language
MongoDB Search Index Index Name, Type, Status, Is Queryable, Is Dynamic, Creation Time

Relationships between objects

Catalog pages show relationships between the following data asset types:

Data asset page

Relationship

MongoDB

MongoDB Databases

MongoDB Database

  • MongoDB Collections
  • MongoDB instance
  • MongoDB Views

MongoDB Collection

  • MongoDB Database
  • MongoDB Collection Fields
  • MongoDB Indexes
  • MongoDB Search Indexes

MongoDB View

MongoDB Collection Field

MongoDB Collection FieldNote: The Analysis samples count parameter specifies the number of documents sampled from a collection to determine collection field types. This value must be a non-negative integer, with a default of 1000. Sampling is performed using the $sample aggregation. For more information, see the MongoDB sampling documentation.

  • Nested MongoDB Collection Fields
  • MongoDB Collection
  • MongoDB View

MongoDB Index

MongoDB Collection

MongoDB Search Index

MongoDB Collection

- **[Prepare to run the MongoDB collector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/prepare-to-run-mongodb-collector.md)** Create a MongoDB user and configure authentication before running the collector. - **[Create a MongoDB metadata collector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/create-mongodb-metadata-collector.md)** Create a collector to import metadata from MongoDB.

Parent Topic:Configuring metadata collectors

Search documentation
Search document titles and file paths on the australia branch