MongoDB integration metrics

The official Datadog integration for monitoring MongoDB. It collects 328 metrics.

Official summary

Track read/write performance, most-used replicas, collection metrics, and more.

Metric types

  • gauge (value at a point in time): 316
  • count (occurrences in the interval): 12

Metrics

Descriptions are the official definitions, unedited.

MetricTypeUnit
mongodb.asserts.msgpsNumber of message assertions raised per second.gaugeassertion/second
mongodb.asserts.regularpsNumber of regular assertions raised per second.gaugeassertion/second
mongodb.asserts.rolloverspsNumber of times that the rollover counters roll over per second. The counters rollover to zero every 2^30 assertions.gaugeassertion/second
mongodb.asserts.userpsNumber of user assertions raised per second.gaugeassertion/second
mongodb.asserts.warningpsNumber of warnings raised per second.gaugeassertion/second
mongodb.backgroundflushing.average_msAverage time for each flush to disk. (deprecated in MongoDB 4.0)gaugemillisecond
mongodb.backgroundflushing.flushespsNumber of times the database has flushed all writes to disk. (deprecated in MongoDB 4.0)gaugeflush/second
mongodb.backgroundflushing.last_msAmount of time that the last flush operation took to complete. (deprecated in MongoDB 4.0)gaugemillisecond
mongodb.backgroundflushing.total_msTotal number of time that the mongod processes have spent writing (i.e. flushing) data to disk. (deprecated in MongoDB 4.0)gaugemillisecond
mongodb.chunks.jumboTotal number of 'jumbo' chunks in the mongo cluster.gauge-
mongodb.chunks.totalTotal number of chunks in the mongo cluster.gauge-
mongodb.collection.avgobjsizeThe size of the average object in the collection in bytes.gaugebyte
mongodb.collection.cappedWhether or not the collection is capped.gaugerecord
mongodb.collection.collectionscans.nontailableNumber of times the collection was scanned without tailable cursor (deprecated).gaugescan
mongodb.collection.collectionscans.nontailablepsNumber of times the collection was scanned without tailable cursor per second.gaugescan/second
mongodb.collection.collectionscans.totalTotal number of times the collection was scanned (deprecated).gaugescan
mongodb.collection.collectionscans.totalpsTotal number of times the collection was scanned per second.gaugescan/second
mongodb.collection.commands.latencyTotal latency for commands on the collection.gaugemicrosecond
mongodb.collection.commands.latency.avgAverage latency for commands on the collection.gaugemicrosecond
mongodb.collection.commands.opspsNumber of command operations per second on the collection.gaugeoperation/second
mongodb.collection.countTotal number of objects in the collection.gaugeitem
mongodb.collection.indexes.accesses.opsNumber of time the index was used.gaugeevent
mongodb.collection.indexes.accesses.opspsNumber of time the index was used per second.gaugeevent/second
mongodb.collection.indexsizesSize of index in bytes.gaugebyte
mongodb.collection.maxMaximum number of documents in a capped collection.gaugedocument
mongodb.collection.maxsizeMaximum size of a capped collection in bytes.gaugebyte
mongodb.collection.nindexesTotal number of indices on the collection.gaugeindex
mongodb.collection.reads.latencyTotal latency for read operations on the collection.gaugemicrosecond
mongodb.collection.reads.latency.avgAverage latency for read operations on the collection.gaugemicrosecond
mongodb.collection.reads.opspsNumber of read operations per second on the collection.gaugeoperation/second
mongodb.collection.sizeThe total uncompressed size in memory of all records in a collection. The size does not include the size of any indexes associated with the collection.gaugebyte
mongodb.collection.storagesizeTotal storage space allocated to this collection for document storage.gaugebyte
mongodb.collection.totalindexsizeTotal disk space used by all indexes created on this collection.gaugebyte
mongodb.collection.transactions.latencyTotal latency for transactions on the collection.gaugemicrosecond
mongodb.collection.transactions.latency.avgAverage latency for transactions on the collection.gaugemicrosecond
mongodb.collection.transactions.opspsNumber of transaction operations per second on the collection.gaugeoperation/second
mongodb.collection.writes.latencyTotal latency for write operations on the collection.gaugemicrosecond
mongodb.collection.writes.latency.avgAverage latency for write operations on the collection.gaugemicrosecond
mongodb.collection.writes.opspsNumber of write operations per second on the collection.gaugeoperation/second
mongodb.connection_pool.numascopedconnectionsNumber of active and stored outgoing scoped synchronous connections from the current mongos instance to other members of the sharded cluster or replica set.gaugeconnection
mongodb.connection_pool.numclientconnectionsReports the number of active and stored outgoing synchronous connections from the current mongos instance to other members of the sharded cluster or replica set.gaugeconnection
mongodb.connection_pool.totalavailableReports the total number of available outgoing connections from the current mongos instance to other members of the sharded cluster or replica set.gaugeconnection
mongodb.connection_pool.totalcreatedpsReports the total number of outgoing connections created per second by the current mongos instance to other members of the sharded cluster or replica set.gaugeconnection/second
mongodb.connection_pool.totalinuseReports the total number of outgoing connections from the current mongod/mongos instance to other members of the sharded cluster or replica set that are currently in use.gaugeconnection
mongodb.connection_pool.totalrefreshingReports the total number of outgoing connections from the current mongos instance to other members of the sharded cluster or replica set that are currently being refreshed.gaugeconnection
mongodb.connections.availableNumber of unused available incoming connections the database can provide.gaugeconnection
mongodb.connections.currentNumber of connections to the database server from clients.gaugeconnection
mongodb.connections.totalcreatedTotal number of connections created.gaugeconnection
mongodb.cursors.timedoutTotal number of cursors that have timed out since the server process started.gaugecursor
mongodb.cursors.totalopenNumber of cursors that MongoDB is maintaining for clientsgaugecursor
mongodb.dbsTotal number of existing databasesgaugeitem
mongodb.dur.commitsNumber of transactions written to the journal during the last journal group commit interval.gaugetransaction
mongodb.dur.commitsinwritelockCount of the commits that occurred while a write lock was held.gaugecommit
mongodb.dur.compressionCompression ratio of the data written to the journal.gaugefraction
mongodb.dur.earlycommitsNumber of times MongoDB requested a commit before the scheduled journal group commit interval.gaugecommit
mongodb.dur.journaledmbAmount of data written to journal during the last journal group commit interval.gaugemebibyte
mongodb.dur.timems.commitsAmount of time spent for commits.gaugemillisecond
mongodb.dur.timems.commitsinwritelockAmount of time spent for commits that occurred while a write lock was held.gaugemillisecond
mongodb.dur.timems.dtAmount of time over which MongoDB collected the dur.timeMS data.gaugemillisecond
mongodb.dur.timems.preplogbufferAmount of time spent preparing to write to the journal.gaugemillisecond
mongodb.dur.timems.remapprivateviewAmount of time spent remapping copy-on-write memory mapped views.gaugemillisecond
mongodb.dur.timems.writetodatafilesAmount of time spent writing to data files after journaling.gaugemillisecond
mongodb.dur.timems.writetojournalAmount of time spent writing to the journalgaugemillisecond
mongodb.dur.writetodatafilesmbAmount of data written from journal to the data files during the last journal group commit interval.gaugemebibyte
mongodb.extra_info.heap_usage_bytespsThe total size in bytes of heap space used by the database process. Available on Unix/Linux systems only.gaugebyte/second
mongodb.extra_info.page_faultspsNumber of page faults per second that require disk operations.gaugefault/second
mongodb.fsynclockedMetric representing the fsynclock state of a database. 1 if it's locked and 0 if it's not.gauge-
mongodb.globallock.activeclients.readersCount of the active client connections performing read operations.gaugeconnection
mongodb.globallock.activeclients.totalTotal number of active client connections to the database.gaugeconnection
mongodb.globallock.activeclients.writersCount of active client connections performing write operations.gaugeconnection
mongodb.globallock.currentqueue.readersNumber of operations that are currently queued and waiting for the read lock.gaugeoperation
mongodb.globallock.currentqueue.totalTotal number of operations queued waiting for the lock.gaugeoperation
mongodb.globallock.currentqueue.writersNumber of operations that are currently queued and waiting for the write lock.gaugeoperation
mongodb.globallock.locktimeTime since the database last started that the globalLock has been held.gaugemillisecond
mongodb.globallock.ratioRatio of the time that the globalLock has been held to the total time since it was created.gaugefraction
mongodb.globallock.totaltimeTime since the database last started and created the global lock.gaugemicrosecond
mongodb.indexcounters.accessespsNumber of times that operations have accessed indexes per second.gaugeevent/second
mongodb.indexcounters.hitspsNumber of times per second that an index has been accessed and mongod is able to return the index from memory.gaugehit/second
mongodb.indexcounters.missespsNumber of times per second that an operation attempted to access an index that was not in memory.gaugemiss/second
mongodb.indexcounters.missratioRatio of index hits to misses.gaugefraction
mongodb.indexcounters.resetspsNumber of times per second the index counters have been reset.gaugeevent/second
mongodb.locks.collection.acquirecount.exclusivepsNumber of times the collection lock type was acquired in the Exclusive (X) mode.gaugelock/second
mongodb.locks.collection.acquirecount.intent_exclusivepsNumber of times the collection lock type was acquired in the Intent Exclusive (IX) mode.gaugelock/second
mongodb.locks.collection.acquirecount.intent_sharedpsNumber of times the collection lock type was acquired in the Intent Shared (IS) mode.gaugelock/second
mongodb.locks.collection.acquirecount.sharedpsNumber of times the collection lock type was acquired in the Shared (S) mode.gaugelock/second
mongodb.locks.collection.acquirewaitcount.exclusivepsNumber of times the collection lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.collection.acquirewaitcount.sharedpsNumber of times the collection lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.collection.timeacquiringmicros.exclusivepsWait time for the collection lock type acquisitions in the Exclusive (X) mode.gaugefraction
mongodb.locks.collection.timeacquiringmicros.sharedpsWait time for the collection lock type acquisitions in the Shared (S) mode.gaugefraction
mongodb.locks.database.acquirecount.exclusivepsNumber of times the database lock type was acquired in the Exclusive (X) mode.gaugelock/second
mongodb.locks.database.acquirecount.intent_exclusivepsNumber of times the database lock type was acquired in the Intent Exclusive (IX) mode.gaugelock/second
mongodb.locks.database.acquirecount.intent_sharedpsNumber of times the database lock type was acquired in the Intent Shared (IS) mode.gaugelock/second
mongodb.locks.database.acquirecount.sharedpsNumber of times the database lock type was acquired in the Shared (S) mode.gaugelock/second
mongodb.locks.database.acquirewaitcount.exclusivepsNumber of times the database lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.database.acquirewaitcount.intent_exclusivepsNumber of times the database lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.database.acquirewaitcount.intent_sharedpsNumber of times the database lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.database.acquirewaitcount.sharedpsNumber of times the database lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.database.timeacquiringmicros.exclusivepsWait time for the database lock type acquisitions in the Exclusive (X) mode.gaugefraction
mongodb.locks.database.timeacquiringmicros.intent_exclusivepsWait time for the database lock type acquisitions in the Intent Exclusive (IX) mode.gaugefraction
mongodb.locks.database.timeacquiringmicros.intent_sharedpsWait time for the database lock type acquisitions in the Intent Shared (IS) mode.gaugefraction
mongodb.locks.database.timeacquiringmicros.sharedpsWait time for the database lock type acquisitions in the Shared (S) mode.gaugefraction
mongodb.locks.global.acquirecount.exclusivepsNumber of times the global lock type was acquired in the Exclusive (X) mode.gaugelock/second
mongodb.locks.global.acquirecount.intent_exclusivepsNumber of times the global lock type was acquired in the Intent Exclusive (IX) mode.gaugelock/second
mongodb.locks.global.acquirecount.intent_sharedpsNumber of times the global lock type was acquired in the Intent Shared (IS) mode.gaugelock/second
mongodb.locks.global.acquirecount.sharedpsNumber of times the global lock type was acquired in the Shared (S) mode.gaugelock/second
mongodb.locks.global.acquirewaitcount.exclusivepsNumber of times the global lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.global.acquirewaitcount.intent_exclusivepsNumber of times the global lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.global.acquirewaitcount.intent_sharedpsNumber of times the global lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.global.acquirewaitcount.sharedpsNumber of times the global lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.global.timeacquiringmicros.exclusivepsWait time for the global lock type acquisitions in the Exclusive (X) mode.gaugefraction
mongodb.locks.global.timeacquiringmicros.intent_exclusivepsWait time for the global lock type acquisitions in the Intent Exclusive (IX) mode.gaugefraction
mongodb.locks.global.timeacquiringmicros.intent_sharedpsWait time for the global lock type acquisitions in the Intent Shared (IS) mode.gaugefraction
mongodb.locks.global.timeacquiringmicros.sharedpsWait time for the global lock type acquisitions in the Shared (S) mode.gaugefraction
mongodb.locks.metadata.acquirecount.exclusivepsNumber of times the metadata lock type was acquired in the Exclusive (X) mode.gaugelock/second
mongodb.locks.metadata.acquirecount.sharedpsNumber of times the metadata lock type was acquired in the Shared (S) mode.gaugelock/second
mongodb.locks.mmapv1journal.acquirecount.intent_exclusivepsNumber of times the MMAPv1 storage engine lock type was acquired in the Intent Exclusive (IX) mode.gaugelock/second
mongodb.locks.mmapv1journal.acquirecount.intent_sharedpsNumber of times the MMAPv1 storage engine lock type was acquired in the Intent Shared (IS) mode.gaugelock/second
mongodb.locks.mmapv1journal.acquirewaitcount.intent_exclusivepsNumber of times the MMAPv1 storage engine lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.mmapv1journal.acquirewaitcount.intent_sharedpsNumber of times the MMAPv1 storage engine lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.mmapv1journal.timeacquiringmicros.intent_exclusivepsWait time for the MMAPv1 storage engine lock type acquisitions in the Intent Exclusive (IX) mode.gaugefraction
mongodb.locks.mmapv1journal.timeacquiringmicros.intent_sharedpsWait time for the MMAPv1 storage engine lock type acquisitions in the Intent Shared (IS) mode.gaugefraction
mongodb.locks.oplog.acquirecount.intent_exclusivepsNumber of times the oplog lock type was acquired in the Intent Exclusive (IX) mode.gaugelock/second
mongodb.locks.oplog.acquirecount.sharedpsNumber of times the oplog lock type was acquired in the Shared (S) mode.gaugelock/second
mongodb.locks.oplog.acquirewaitcount.intent_exclusivepsNumber of times the oplog lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.oplog.acquirewaitcount.sharedpsNumber of times the oplog lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.gaugewait/second
mongodb.locks.oplog.timeacquiringmicros.intent_exclusivepsWait time for the oplog lock type acquisitions in the Intent Exclusive (IX) mode.gaugefraction
mongodb.locks.oplog.timeacquiringmicros.sharedpsWait time for the oplog lock type acquisitions in the Shared (S) mode.gaugefraction
mongodb.mem.bitsSize of the in-memory storage engine.gaugemebibyte
mongodb.mem.mappedAmount of mapped memory by the database.gaugemebibyte
mongodb.mem.mappedwithjournalThe amount of mapped memory, including the memory used for journaling.gaugemebibyte
mongodb.mem.residentAmount of memory currently used by the database process.gaugemebibyte
mongodb.mem.virtualAmount of virtual memory used by the mongod process.gaugemebibyte
mongodb.metrics.commands.count.failedpsNumber of times count failedgaugecommand/second
mongodb.metrics.commands.count.totalNumber of times count executedgaugecommand
mongodb.metrics.commands.createindexes.failedpsNumber of times createIndexes failedgaugecommand/second
mongodb.metrics.commands.createindexes.totalNumber of times createIndexes executedgaugecommand
mongodb.metrics.commands.delete.failedpsNumber of times delete failedgaugecommand/second
mongodb.metrics.commands.delete.totalNumber of times delete executedgaugecommand
mongodb.metrics.commands.eval.failedpsNumber of times eval failedgaugecommand/second
mongodb.metrics.commands.eval.totalNumber of times eval executedgaugecommand
mongodb.metrics.commands.findandmodify.failedpsNumber of times findAndModify failedgaugecommand/second
mongodb.metrics.commands.findandmodify.totalNumber of times findAndModify executedgaugecommand
mongodb.metrics.commands.insert.failedpsNumber of times insert failedgaugecommand/second
mongodb.metrics.commands.insert.totalNumber of times insert executedgaugecommand
mongodb.metrics.commands.update.failedpsNumber of times update failedgaugecommand/second
mongodb.metrics.commands.update.totalNumber of times update executedgaugecommand
mongodb.metrics.cursor.open.notimeoutNumber of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout after a period of inactivity.gaugecursor
mongodb.metrics.cursor.open.pinnedNumber of pinned open cursors.gaugecursor
mongodb.metrics.cursor.open.totalNumber of cursors that MongoDB is maintaining for clients.gaugecursor
mongodb.metrics.cursor.timedoutpsNumber of cursors that time out, per second.gaugecursor/second
mongodb.metrics.document.deletedpsNumber of documents deleted per second.gaugedocument/second
mongodb.metrics.document.insertedpsNumber of documents inserted per second.gaugedocument/second
mongodb.metrics.document.returnedpsNumber of documents returned by queries per second.gaugedocument/second
mongodb.metrics.document.updatedpsNumber of documents updated per second.gaugedocument/second
mongodb.metrics.getlasterror.wtime.numpsNumber of getLastError operations per second with a specified write concern (i.e. w) that wait for one or more members of a replica set to acknowledge the write operation.gaugeoperation/second
mongodb.metrics.getlasterror.wtime.totalmillispsFraction of time (ms/s) that the mongod has spent performing getLastError operations with write concern (i.e. w) that wait for one or more members of a replica set to acknowledge the write operation.gaugefraction
mongodb.metrics.getlasterror.wtimeoutspsNumber of times per second that write concern operations have timed out as a result of the wtimeout threshold to getLastErrorgaugeevent/second
mongodb.metrics.operation.fastmodpsNumber of update operations per second that neither cause documents to grow nor require updates to the index.gaugeoperation/second
mongodb.metrics.operation.idhackpsNumber of queries per second that contain the _id field.gaugequery/second
mongodb.metrics.operation.scanandorderpsNumber of queries per second that return sorted numbers that cannot perform the sort operation using an index.gaugequery/second
mongodb.metrics.operation.writeconflictspsNumber of times per second that write concern operations has encounter a conflict.gaugeevent/second
mongodb.metrics.query.plancache.classic.hitspsNumber of times per second the query planner accesses the classic plan cache and finds a cached plan (requires MongoDB 7.0 and above).gaugeoperation/second
mongodb.metrics.query.plancache.classic.missespsNumber of times per second the query planner accesses the classic plan cache and does not find a cached plan (requires MongoDB 7.0 and above).gaugeoperation/second
mongodb.metrics.query.plancache.sbe.hitspsNumber of times per second the query planner accesses the slot-based execution engine plan cache and finds a cached plan (requires MongoDB 7.0 and above).gaugeoperation/second
mongodb.metrics.query.plancache.sbe.missespsNumber of times per second the query planner accesses the slot-based execution engine plan cache and does not find a cached plan (requires MongoDB 7.0 and above).gaugeoperation/second
mongodb.metrics.query.sort.spilltodiskpsThe total number of writes per second to disk caused by sort stages (requires MongoDB 6.2 and above).gaugeoperation/second
mongodb.metrics.query.sort.totalbytessortedpsThe total amount of sorted data in bytes per second (requires MongoDB 6.2 and above).gaugebyte/second
mongodb.metrics.query.sort.totalkeyssortedpsThe total number of keys used in sorts per second (requires MongoDB 6.2 and above).gaugekey/second
mongodb.metrics.queryexecutor.scannedobjectspsNumber of documents scanned per second during queries and query-plan evaluation.gaugeoperation/second
mongodb.metrics.queryexecutor.scannedpsNumber of index items scanned per second during queries and query-plan evaluation.gaugeoperation/second
mongodb.metrics.record.movespsNumber of times per second documents move within the on-disk representation of the MongoDB data set.gaugeoperation/second
mongodb.metrics.repl.apply.batches.numpsNumber of batches applied across all databases per second.gaugeoperation/second
mongodb.metrics.repl.apply.batches.totalmillispsFraction of time (ms/s) the mongod has spent applying operations from the oplog.gaugefraction
mongodb.metrics.repl.apply.opspsNumber of oplog operations applied per second.gaugeoperation/second
mongodb.metrics.repl.buffer.countNumber of operations in the oplog buffer.gaugeoperation
mongodb.metrics.repl.buffer.maxsizebytesMaximum size of the buffer.gaugebyte
mongodb.metrics.repl.buffer.sizebytesCurrent size of the contents of the oplog buffer.gaugebyte
mongodb.metrics.repl.network.bytespsAmount of data read from the replication sync source per second.gaugebyte/second
mongodb.metrics.repl.network.getmores.numpsNumber of getmore operations per second.gaugeoperation/second
mongodb.metrics.repl.network.getmores.totalmillispsFraction of time (ms/s) required to collect data from getmore operations.gaugefraction
mongodb.metrics.repl.network.opspsNumber of operations read from the replication source per second.gaugeoperation/second
mongodb.metrics.repl.network.readerscreatedpsNumber of oplog query processes created per second.gaugeprocess/second
mongodb.metrics.repl.preload.docs.numpsNumber of documents loaded per second during the pre-fetch stage of replication.gaugedocument/second
mongodb.metrics.repl.preload.docs.totalmillispsFraction of time (ms/s) spent loading documents as part of the pre-fetch stage of replication.gaugefraction
mongodb.metrics.repl.preload.indexes.numpsNumber of index entries loaded by members before updating documents as part of the pre-fetch stage of replication.gaugedocument/second
mongodb.metrics.repl.preload.indexes.totalmillispsFraction of time (ms/s) spent loading documents as part of the pre-fetch stage of replication.gaugefraction
mongodb.metrics.ttl.deleteddocumentspsNumber of documents deleted from collections with a ttl index per second.gaugedocument/second
mongodb.metrics.ttl.passespsNumber of times per second the background process removes documents from collections with a ttl index.gaugeoperation/second
mongodb.network.bytesinpsThe number of bytes that reflects the amount of network traffic received by this database.gaugebyte/second
mongodb.network.bytesoutpsThe number of bytes that reflects the amount of network traffic sent from this database.gaugebyte/second
mongodb.network.numrequestspsNumber of distinct requests that the server has received.gaugerequest/second
mongodb.opcounters.commandpsTotal number of commands per second issued to the database.gaugecommand/second
mongodb.opcounters.deletepsNumber of delete operations per second.gaugeoperation/second
mongodb.opcounters.getmorepsNumber of getmore operations per second.gaugeoperation/second
mongodb.opcounters.insertpsNumber of insert operations per second.gaugeoperation/second
mongodb.opcounters.querypsTotal number of queries per second.gaugequery/second
mongodb.opcounters.updatepsNumber of update operations per second.gaugeoperation/second
mongodb.opcountersrepl.commandpsTotal number of replicated commands issued to the database per second.gaugecommand/second
mongodb.opcountersrepl.deletepsNumber of replicated delete operations per second.gaugeoperation/second
mongodb.opcountersrepl.getmorepsNumber of replicated getmore operations per second.gaugeoperation/second
mongodb.opcountersrepl.insertpsNumber of replicated insert operations per second.gaugeoperation/second
mongodb.opcountersrepl.querypsTotal number of replicated queries per second.gaugequery/second
mongodb.opcountersrepl.updatepsNumber of replicated update operations per second.gaugeoperation/second
mongodb.oplatencies.commands.latencyTotal combined latency for database commands.gaugemicrosecond
mongodb.oplatencies.commands.latency.avgAverage latency for database commands.gaugemicrosecond
mongodb.oplatencies.commands.latencypsTotal latency statistics for database commands per second (deprecated).gaugecommand/second
mongodb.oplatencies.reads.latencyTotal combined latency for read requests.gaugemicrosecond
mongodb.oplatencies.reads.latency.avgAverage latency for read requests.gaugemicrosecond
mongodb.oplatencies.reads.latencypsTotal latency statistics for read requests per second (deprecated).gaugeoperation/second
mongodb.oplatencies.writes.latencyTotal combined latency for write requests.gaugemicrosecond
mongodb.oplatencies.writes.latency.avgAverage latency for write requests.gaugemicrosecond
mongodb.oplatencies.writes.latencypsTotal latency statistics for write operations per second (deprecated).gaugeoperation/second
mongodb.oplog.logsizembTotal size of the oplog.gaugemebibyte
mongodb.oplog.timediffOplog window: difference between the first and last operation in the oplog.gaugesecond
mongodb.oplog.usedsizembTotal amount of space used by the oplog.gaugemebibyte
mongodb.queries.bytes_readBytes read from storage.countbyte
mongodb.queries.countNumber of query executions.countquery
mongodb.queries.cpu_timeCPU time consumed by queries.countnanosecond
mongodb.queries.docs_examinedNumber of documents examined.countdocument
mongodb.queries.docs_returnedNumber of documents returned.countdocument
mongodb.queries.keys_examinedNumber of index keys examined.countkey
mongodb.queries.read_timeI/O read time.countnanosecond
mongodb.queries.sort_stageNumber of queries with in-memory sort stage.countquery
mongodb.queries.timeTotal query execution time.countnanosecond
mongodb.queries.time_to_responseTime to first response.countnanosecond
mongodb.queries.used_diskNumber of queries that spilled to disk.countquery
mongodb.queries.working_timeQuery working time.countnanosecond
mongodb.replset.healthMember health value of the replica set: conveys if the member is up (i.e. 1) or down (i.e. 0).gauge-
mongodb.replset.optime_lagDelay between a write operation on the primary and its copy to a secondary. Computed only on primary and tagged by 'member'.gaugesecond
mongodb.replset.replicationlagDelay between a write operation on the primary and its copy to a secondary. Computed on each node and tagged by 'host', but may not be representative of cluster health. Negative values do not indicate that the secondary is ahead of the primary. To use a more up-to-date metric, use mongodb.replset.optime_lag instead.gaugesecond
mongodb.replset.stateState of a replica that reflects its disposition within the set.gauge-
mongodb.replset.votefractionFraction of votes a server will cast in a replica set election.gaugefraction
mongodb.replset.votesThe number of votes a server will cast in a replica set election.gaugeitem
mongodb.sessions.countNumber of active sessions for all users.gaugesession
mongodb.sharded_data_distribution.num_orphaned_docsNumber of orphaned documents in the shard.gaugedocument
mongodb.sharded_data_distribution.num_owned_documentsNumber of owned documents in the shard.gaugedocument
mongodb.sharded_data_distribution.orphaned_size_bytesSize of orphaned documents in the shard.gaugebyte
mongodb.sharded_data_distribution.owned_size_bytesSize of owned documents in the shard.gaugebyte
mongodb.stats.avgobjsizeThe average size of each document in bytes.gaugebyte
mongodb.stats.collectionsContains a count of the number of collections in that database.gauge-
mongodb.stats.datasizeTotal size of the data held in this database including the padding factor.gaugebyte
mongodb.stats.filesizeTotal size of the data held in this database including the padding factor (only available with the mmapv1 storage engine).gaugebyte
mongodb.stats.freestoragesizeTotal amount of free space allocated to all collections in the database for document storage.gaugebyte
mongodb.stats.fstotalsizeTotal amount of all disk capacity on the filesystem where MongoDB stores data.gaugebyte
mongodb.stats.fsusedsizeTotal amount of all disk space in use on the filesystem where MongoDB stores data.gaugebyte
mongodb.stats.indexesTotal number of indexes across all collections in the database.gaugeindex
mongodb.stats.indexfreestoragesizeTotal amount of free disk space allocated to all indexes in the database.gaugebyte
mongodb.stats.indexsizeTotal size of all indexes created on this database.gaugebyte
mongodb.stats.numextentsContains a count of the number of extents in the database across all collections.gauge-
mongodb.stats.objectsNumber of objects (documents) in the database across all collections.gaugeobject
mongodb.stats.storagesizeTotal amount of space allocated to collections in this database for document storage.gaugebyte
mongodb.stats.totalfreestoragesizeTotal amount of free storage space allocated for both documents and indexes in all collections in the database.gaugebyte
mongodb.stats.totalsizeTotal amount of disk space allocated for both documents and indexes in all collections in the database. Includes used and free storage space.gaugebyte
mongodb.stats.viewsContains a count of the number of views in the database.gauge-
mongodb.system.cpu.coresThe total number of available logical processor cores.gaugecore
mongodb.system.cpu.percentTotal CPU usage percentage of the MongoDB process (only available on self-hosted MongoDB running on the same host as the Agent).gaugepercent
mongodb.system.mem.limitThe system memory (RAM) usage limit. For example running in a container may impose memory limits that are lower than the total system memory.gaugemegabyte
mongodb.system.mem.totalThe total amount of system memory (RAM).gaugemegabyte
mongodb.tcmalloc.generic.current_allocated_bytesNumber of bytes used by the application.gaugebyte
mongodb.tcmalloc.generic.heap_sizeBytes of system memory reserved by TCMalloc.gaugebyte
mongodb.tcmalloc.tcmalloc.aggressive_memory_decommitStatus of aggressive memory decommit mode.gauge-
mongodb.tcmalloc.tcmalloc.central_cache_free_bytesNumber of free bytes in the central cache.gaugebyte
mongodb.tcmalloc.tcmalloc.current_total_thread_cache_bytesNumber of bytes used across all thread caches.gaugebyte
mongodb.tcmalloc.tcmalloc.max_total_thread_cache_bytesUpper limit on total number of bytes stored across all per-thread caches.gaugebyte
mongodb.tcmalloc.tcmalloc.pageheap_free_bytesNumber of bytes in free mapped pages in page heap.gaugebyte
mongodb.tcmalloc.tcmalloc.pageheap_unmapped_bytesNumber of bytes in free unmapped pages in page heap.gaugebyte
mongodb.tcmalloc.tcmalloc.spinlock_total_delay_nsSpinlock delay time.gaugenanosecond
mongodb.tcmalloc.tcmalloc.thread_cache_free_bytesNumber of free bytes in thread caches.gaugebyte
mongodb.tcmalloc.tcmalloc.transfer_cache_free_bytesNumber of free bytes that are waiting to be transferred between the central cache and a thread cache.gaugebyte
mongodb.uptimeNumber of seconds that the mongos or mongod process has been active.gaugesecond
mongodb.usage.commands.countNumber of commands since server start (deprecated)gaugecommand
mongodb.usage.commands.countpsNumber of commands per secondgaugecommand/second
mongodb.usage.commands.timeTotal time spent performing commands in microsecondsgaugemicrosecond
mongodb.usage.getmore.countNumber of getmore since server start (deprecated)gaugefetch
mongodb.usage.getmore.countpsNumber of getmore per secondgaugefetch/second
mongodb.usage.getmore.timeTotal time spent performing getmore in microsecondsgaugemicrosecond
mongodb.usage.insert.countNumber of inserts since server start (deprecated)gaugecommit
mongodb.usage.insert.countpsNumber of inserts per secondgaugecommit/second
mongodb.usage.insert.timeTotal time spent performing inserts in microsecondsgaugemicrosecond
mongodb.usage.queries.countNumber of queries since server start (deprecated)gaugequery
mongodb.usage.queries.countpsNumber of queries per secondgaugequery/second
mongodb.usage.queries.timeTotal time spent performing queries in microsecondsgaugemicrosecond
mongodb.usage.readlock.countNumber of read locks since server start (deprecated)gaugelock
mongodb.usage.readlock.countpsNumber of read locks per secondgaugelock/second
mongodb.usage.readlock.timeTotal time spent performing read locks in microsecondsgaugemicrosecond
mongodb.usage.remove.countNumber of removes since server start (deprecated)gaugecommit
mongodb.usage.remove.countpsNumber of removes per secondgaugecommit/second
mongodb.usage.remove.timeTotal time spent performing removes in microsecondsgaugemicrosecond
mongodb.usage.total.countNumber of operations since server start (deprecated)gaugecommand
mongodb.usage.total.countpsNumber of operations per secondgaugecommand/second
mongodb.usage.total.timeTotal time spent holding locks in microsecondsgaugemicrosecond
mongodb.usage.update.countNumber of updates since server start (deprecated)gaugecommit
mongodb.usage.update.countpsNumber of updates per secondgaugecommit/second
mongodb.usage.update.timeTotal time spent performing updates in microsecondsgaugemicrosecond
mongodb.usage.writelock.countNumber of write locks since server start (deprecated)gaugelock
mongodb.usage.writelock.countpsNumber of write locks per secondgaugelock/second
mongodb.usage.writelock.timeTotal time spent performing write locks in microsecondsgaugemicrosecond
mongodb.wiredtiger.cache.application_thread_time_evicting_usecspsApplication thread time spent evicting pages per second.gaugefraction
mongodb.wiredtiger.cache.bytes_currently_in_cacheSize of the data currently in cache.gaugebyte
mongodb.wiredtiger.cache.bytes_read_into_cacheNumber of bytes read into the cache.gaugebyte
mongodb.wiredtiger.cache.bytes_written_from_cacheNumber of bytes written from the cache.gaugebyte
mongodb.wiredtiger.cache.evict_page_attempts_by_eviction_serverpsPage eviction attempts by the eviction server per second.gaugepage/second
mongodb.wiredtiger.cache.evict_page_attempts_by_eviction_worker_threadspsPage eviction attempts by eviction worker threads per second.gaugepage/second
mongodb.wiredtiger.cache.evict_page_failures_by_eviction_serverpsPage eviction failures by the eviction server per second.gaugepage/second
mongodb.wiredtiger.cache.evict_page_failures_by_eviction_worker_threadspsPage eviction failures by eviction worker threads per second.gaugepage/second
mongodb.wiredtiger.cache.failed_eviction_of_pages_exceeding_the_in_memory_maximumpsNumber of failed eviction of pages that exceeded the in-memory maximum, per second.gaugepage/second
mongodb.wiredtiger.cache.in_memory_page_splitsIn-memory page splits.gaugesplit
mongodb.wiredtiger.cache.maximum_bytes_configuredMaximum cache size.gaugebyte
mongodb.wiredtiger.cache.maximum_page_size_at_evictionMaximum page size at eviction.gaugebyte
mongodb.wiredtiger.cache.modified_page_evict_attempts_by_application_threadspsModified page eviction attempts by application threads per second.gaugepage/second
mongodb.wiredtiger.cache.modified_page_evict_failures_by_application_threadspsModified page eviction failures by application threads per second.gaugepage/second
mongodb.wiredtiger.cache.modified_pages_evictedNumber of pages, that have been modified, evicted from the cache.gaugepage
mongodb.wiredtiger.cache.page_evict_attempts_by_application_threadspsPage eviction attempts by application threads per second.gaugepage/second
mongodb.wiredtiger.cache.page_evict_failures_by_application_threadspsPage eviction failures by application threads per second.gaugepage/second
mongodb.wiredtiger.cache.pages_currently_held_in_cacheNumber of pages currently held in the cache.gaugepage
mongodb.wiredtiger.cache.pages_evicted_by_application_threadspsNumber of page evicted by application threads per second.gaugepage/second
mongodb.wiredtiger.cache.pages_evicted_exceeding_the_in_memory_maximumpsNumber of pages evicted because they exceeded the cache in-memory maximum, per second.gaugepage/second
mongodb.wiredtiger.cache.pages_read_into_cacheNumber of pages read into the cache.gaugepage
mongodb.wiredtiger.cache.pages_requested_from_cacheNumber of pages requested from the cache.gaugepage
mongodb.wiredtiger.cache.pages_written_from_cacheNumber of pages writtent from the cachegaugepage
mongodb.wiredtiger.cache.tracked_dirty_bytes_in_cacheSize of the dirty data in the cache.gaugebyte
mongodb.wiredtiger.cache.unmodified_pages_evictedNumber of pages, that were not modified, evicted from the cache.gaugepage
mongodb.wiredtiger.concurrenttransactions.read.availableNumber of available read tickets (concurrent transactions) remaining.gaugeticket
mongodb.wiredtiger.concurrenttransactions.read.outNumber of read tickets (concurrent transactions) in use.gaugeticket
mongodb.wiredtiger.concurrenttransactions.read.totalticketsTotal number of read tickets (concurrent transactions) available.gaugeticket
mongodb.wiredtiger.concurrenttransactions.write.availableNumber of available write tickets (concurrent transactions) remaining.gaugeticket
mongodb.wiredtiger.concurrenttransactions.write.outNumber of write tickets (concurrent transactions) in use.gaugeticket
mongodb.wiredtiger.concurrenttransactions.write.totalticketsTotal number of write tickets (concurrent transactions) available.gaugeticket

Official documentation

Official documentation for the MongoDB integration

Metric names and descriptions are the official Datadog integration definitions (Copyright Datadog, Inc., BSD-3-Clause), reproduced unedited. The full license terms are on the About page.