Skip to main content

MongoDB

Overview

The MongoDB integration with Motadata AIOps provides visibility into database performance, operations, memory usage, cache efficiency, and collection-level statistics. By monitoring these KPIs, administrators can optimize queries, track resource utilization, and ensure the reliability of MongoDB deployments.

Prerequisites

Ensure the following prerequisites are met:

  • MongoDB instance must be reachable over the network.
  • Monitoring credentials (username/password or key file) must be available.
  • MongoDB should have monitoring commands enabled (db.serverStatus, dbStats, collStats).
  • The instance must be added and discovered using the MongoDB plugin in Motadata AIOps.

List of Supported KPIs

General Metrics

MetricDescriptionType
mongodb.versionVersion of MongoDB server.String
mongodb.commitsTotal number of commits.Count
mongodb.cache.size.bytesCache size in bytes.Bytes
mongodb.dirty.cache.size.bytesDirty cache size in bytes.Bytes
mongodb.cache.read.size.bytesAmount of data read from cache in bytes.Bytes
mongodb.cache.write.size.bytesAmount of data written to cache in bytes.Bytes
mongodb.pages.readTotal pages read.Count
mongodb.pages.writeTotal pages written.Count
mongodb.pages.requestedTotal page requests.Count
mongodb.pages.evictedTotal pages evicted from cache.Count
mongodb.page.faultsNumber of page faults.Count
mongodb.cache.configured.size.bytesConfigured cache size in bytes.Bytes
mongodb.available.connectionsNumber of available connections.Count
mongodb.used.connectionsNumber of used connections.Count
mongodb.created.connectionsTotal created connections.Count
mongodb.network.in.bytesIncoming network bytes.Bytes
mongodb.network.out.bytesOutgoing network bytes.Bytes
mongodb.network.requestsNumber of network requests.Count
mongodb.read.latency.msAverage read latency.Milliseconds
mongodb.write.latency.msAverage write latency.Milliseconds
mongodb.read.response.time.msAverage read response time.Milliseconds
mongodb.write.response.time.msAverage write response time.Milliseconds
mongodb.insert.operations.rateInsert operations per second.Count
mongodb.query.operations.rateQuery operations per second.Count
mongodb.update.operations.rateUpdate operations per second.Count
mongodb.delete.operations.rateDelete operations per second.Count
mongodb.getmore.operations.rateGetMore operations per second.Count
mongodb.operations.rateOverall operations per second.Count
mongodb.virtual.memory.bytesVirtual memory in use.Bytes
mongodb.resident.memory.bytesResident memory in use.Bytes
mongodb.global.lock.queueTotal global lock queue length.Count
mongodb.global.read.lock.queueRead lock queue length.Count
mongodb.global.write.lock.queueWrite lock queue length.Count
mongodb.global.lock.active.clientsTotal active clients holding locks.Count
mongodb.global.read.lock.active.clientsActive clients with read locks.Count
mongodb.global.write.lock.active.clientsActive clients with write locks.Count
mongodb.assert.regularNumber of regular assertions.Count
mongodb.assert.warningNumber of warning assertions.Count
mongodb.assert.messagesNumber of assertion messages.Count
mongodb.assert.userNumber of user assertions.Count
mongodb.timed.out.cursorsNumber of timed-out cursors.Count
mongodb.db.read.lockDatabase-level read lock.Count
mongodb.db.write.lockDatabase-level write lock.Count
mongodb.global.read.lockGlobal read lock count.Count
mongodb.global.write.lockGlobal write lock count.Count
mongodb.db.write.conflictsWrite conflicts at database level.Count
mongodb.db.operation.scanNumber of scanned operations.Count
mongodb.inserted.documentsTotal documents inserted.Count
mongodb.deleted.documentsTotal documents deleted.Count
mongodb.returned.documentsTotal documents returned.Count
mongodb.matched.documentsTotal documents matched.Count
mongodb.examined.indexTotal index entries examined.Count
mongodb.examined.documentsTotal documents examined.Count
mongodb.colscan.queriesNumber of collection scan queries.Count

Collection Metrics

MetricDescriptionType
mongodb.collectionCollection identifier.String
mongodb.collection.nameName of the collection.String
mongodb.collection.databaseDatabase name of the collection.String
mongodb.collection.documentsNumber of documents in the collection.Count
mongodb.collection.data.size.bytesData size of the collection in bytes.Bytes
mongodb.collection.storage.size.bytesStorage size used by the collection in bytes.Bytes
mongodb.collection.index.size.bytesTotal index size of the collection.Bytes
mongodb.collection.indexesNumber of indexes on the collection.Count
mongodb.collection.avg.document.size.bytesAverage document size in bytes.Bytes
mongodb.collection.capacity.size.bytesTotal capacity size of the collection in bytes.Bytes

Database Metrics

MetricDescriptionType
mongodb.databaseDatabase identifier.String
mongodb.database.data.size.bytesData size of the database in bytes.Bytes
mongodb.database.storage.size.bytesStorage size used by the database in bytes.Bytes
mongodb.database.index.size.bytesTotal index size of the database in bytes.Bytes
mongodb.database.file.size.bytesFile size used by the database in bytes.Bytes
mongodb.database.collectionsNumber of collections in the database.Count
mongodb.database.objectsNumber of objects/documents in the database.Count
mongodb.database.indexesNumber of indexes in the database.Count
mongodb.database.avg.object.size.bytesAverage object/document size in bytes.Bytes