MongoDB Metrics

See Application Integrations for more information.

Metrics Introduced with Agent v9.7.0

The following metrics are supported by Sysdig Agent v9.7.0 and above.

Metric NameDescription
mongodb.tcmalloc.generic.current_allocated_bytesThe number of bytes used by the application.
mongodb.tcmalloc.generic.heap_sizeBytes of system memory reserved by TCMalloc.
mongodb.tcmalloc.tcmalloc.aggressive_memory_decommitStatus of aggressive memory de-commit mode.
mongodb.tcmalloc.tcmalloc.central_cache_free_bytesThe number of free bytes in the central cache.
mongodb.tcmalloc.tcmalloc.current_total_thread_cache_bytesThe number of bytes used across all thread caches.
mongodb.tcmalloc.tcmalloc.max_total_thread_cache_bytesThe upper limit on the total number of bytes stored across all per-thread caches.
mongodb.tcmalloc.tcmalloc.pageheap_free_bytesThe number of bytes in free mapped pages in page heap.
mongodb.tcmalloc.tcmalloc.pageheap_unmapped_bytesThe number of bytes in free unmapped pages in page heap.
mongodb.tcmalloc.tcmalloc.spinlock_total_delay_nsGives the spinlock delay time.
mongodb.tcmalloc.tcmalloc.thread_cache_free_bytesThe number of free bytes in thread caches.
mongodb.tcmalloc.tcmalloc.transfer_cache_free_bytesThe number of free bytes that are waiting to be transferred between the central cache and a thread cache.

mongodb.asserts.msgps

Number of message assertions raised per second.

mongodb.asserts.regularps

Number of regular assertions raised per second.

mongodb.asserts.rolloversps

Number of times that the rollover counters roll over per second. The counters rollover to zero every 2^30 assertions.

mongodb.asserts.userps

Number of user assertions raised per second.

mongodb.asserts.warningps

Number of warnings raised per second.

mongodb.backgroundflushing.average_ms

Average time for each flush to disk.

mongodb.backgroundflushing.flushesps

Number of times the database has flushed all writes to disk.

mongodb.backgroundflushing.last_ms

Amount of time that the last flush operation took to complete.

mongodb.backgroundflushing.total_ms

Total number of time that the `mongod` processes have spent writing (i.e. flushing) data to disk.

mongodb.connections.available

Number of unused available incoming connections the database can provide.

mongodb.connections.current

Number of connections to the database server from clients.

mongodb.connections.totalcreated

Total number of connections created.

mongodb.cursors.timedout

Total number of cursors that have timed out since the server process started.

mongodb.cursors.totalopen

Number of cursors that MongoDB is maintaining for clients

mongodb.dbs

Total number of existing databases

mongodb.dur.commits

Number of transactions written to the journal during the last journal group commit interval.

mongodb.dur.commitsinwritelock

Count of the commits that occurred while a write lock was held.

mongodb.dur.compression

Compression ratio of the data written to the journal.

mongodb.dur.earlycommits

Number of times MongoDB requested a commit before the scheduled journal group commit interval.

mongodb.dur.journaledmb

Amount of data written to journal during the last journal group commit interval.

mongodb.dur.timems.commits

Amount of time spent for commits.

mongodb.dur.timems.commitsinwritelock

Amount of time spent for commits that occurred while a write lock was held.

mongodb.dur.timems.dt

Amount of time over which MongoDB collected the `dur.timeMS` data.

mongodb.dur.timems.preplogbuffer

Amount of time spent preparing to write to the journal.

mongodb.dur.timems.remapprivateview

Amount of time spent remapping copy-on-write memory mapped views.

mongodb.dur.timems.writetodatafiles

Amount of time spent writing to data files after journaling.

mongodb.dur.timems.writetojournal

Amount of time spent writing to the journal

mongodb.dur.writetodatafilesmb

Amount of data written from journal to the data files during the last journal group commit interval.

mongodb.extra_info.page_faultsps

Number of page faults per second that require disk operations.

mongodb.fsynclocked

Number of fsynclocked performed on a mongo instance.

mongodb.globallock.activeclients.readers

Count of the active client connections performing read operations.

mongodb.globallock.activeclients.total

Total number of active client connections to the database.

mongodb.globallock.activeclients.writers

Count of active client connections performing write operations.

mongodb.globallock.currentqueue.readers

Number of operations that are currently queued and waiting for the read lock.

mongodb.globallock.currentqueue.total

Total number of operations queued waiting for the lock.

mongodb.globallock.currentqueue.writers

Number of operations that are currently queued and waiting for the write lock.

mongodb.globallock.locktime

Time since the database last started that the globalLock has been held.

mongodb.globallock.ratio

Ratio of the time that the globalLock has been held to the total time since it was created.

mongodb.globallock.totaltime

Time since the database last started and created the global lock.

mongodb.indexcounters.accessesps

Number of times that operations have accessed indexes per second.

mongodb.indexcounters.hitsps

Number of times per second that an index has been accessed and mongod is able to return the index from memory.

mongodb.indexcounters.missesps

Number of times per second that an operation attempted to access an index that was not in memory.

mongodb.indexcounters.missratio

Ratio of index hits to misses.

mongodb.indexcounters.resetsps

Number of times per second the index counters have been reset.

mongodb.locks.collection.acquirecount.exclusiveps

Number of times the collection lock type was acquired in the Exclusive (X) mode.

mongodb.locks.collection.acquirecount.intent_exclusiveps

Number of times the collection lock type was acquired in the Intent Exclusive (IX) mode.

mongodb.locks.collection.acquirecount.intent_sharedps

Number of times the collection lock type was acquired in the Intent Shared (IS) mode.

mongodb.locks.collection.acquirecount.sharedps

Number of times the collection lock type was acquired in the Shared (S) mode.

mongodb.locks.collection.acquirewaitcount.exclusiveps

Number of times the collection lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.collection.acquirewaitcount.sharedps

Number of times the collection lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.collection.timeacquiringmicros.exclusiveps

Wait time for the collection lock type acquisitions in the Exclusive (X) mode.

mongodb.locks.collection.timeacquiringmicros.sharedps

Wait time for the collection lock type acquisitions in the Shared (S) mode.

mongodb.locks.database.acquirecount.exclusiveps

Number of times the database lock type was acquired in the Exclusive (X) mode.

mongodb.locks.database.acquirecount.intent_exclusiveps

Number of times the database lock type was acquired in the Intent Exclusive (IX) mode.

mongodb.locks.database.acquirecount.intent_sharedps

Number of times the database lock type was acquired in the Intent Shared (IS) mode.

mongodb.locks.database.acquirecount.sharedps

Number of times the database lock type was acquired in the Shared (S) mode.

mongodb.locks.database.acquirewaitcount.exclusiveps

Number of times the database lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.database.acquirewaitcount.intent_exclusiveps

Number of times the database lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.database.acquirewaitcount.intent_sharedps

Number of times the database lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.database.acquirewaitcount.sharedps

Number of times the database lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.database.timeacquiringmicros.exclusiveps

Wait time for the database lock type acquisitions in the Exclusive (X) mode.

mongodb.locks.database.timeacquiringmicros.intent_exclusiveps

Wait time for the database lock type acquisitions in the Intent Exclusive (IX) mode.

mongodb.locks.database.timeacquiringmicros.intent_sharedps

Wait time for the database lock type acquisitions in the Intent Shared (IS) mode.

mongodb.locks.database.timeacquiringmicros.sharedps

Wait time for the database lock type acquisitions in the Shared (S) mode.

mongodb.locks.global.acquirecount.exclusiveps

Number of times the global lock type was acquired in the Exclusive (X) mode.

mongodb.locks.global.acquirecount.intent_exclusiveps

Number of times the global lock type was acquired in the Intent Exclusive (IX) mode.

mongodb.locks.global.acquirecount.intent_sharedps

Number of times the global lock type was acquired in the Intent Shared (IS) mode.

mongodb.locks.global.acquirecount.sharedps

Number of times the global lock type was acquired in the Shared (S) mode.

mongodb.locks.global.acquirewaitcount.exclusiveps

Number of times the global lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.global.acquirewaitcount.intent_exclusiveps

Number of times the global lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.global.acquirewaitcount.intent_sharedps

Number of times the global lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.global.acquirewaitcount.sharedps

Number of times the global lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.global.timeacquiringmicros.exclusiveps

Wait time for the global lock type acquisitions in the Exclusive (X) mode.

mongodb.locks.global.timeacquiringmicros.intent_exclusiveps

Wait time for the global lock type acquisitions in the Intent Exclusive (IX) mode.

mongodb.locks.global.timeacquiringmicros.intent_sharedps

Wait time for the global lock type acquisitions in the Intent Shared (IS) mode.

mongodb.locks.global.timeacquiringmicros.sharedps

Wait time for the global lock type acquisitions in the Shared (S) mode.

mongodb.locks.metadata.acquirecount.exclusiveps

Number of times the metadata lock type was acquired in the Exclusive (X) mode.

mongodb.locks.metadata.acquirecount.sharedps

Number of times the metadata lock type was acquired in the Shared (S) mode.

mongodb.locks.mmapv1journal.acquirecount.intent_exclusiveps

Number of times the MMAPv1 storage engine lock type was acquired in the Intent Exclusive (IX) mode.

mongodb.locks.mmapv1journal.acquirecount.intent_sharedps

Number of times the MMAPv1 storage engine lock type was acquired in the Intent Shared (IS) mode.

mongodb.locks.mmapv1journal.acquirewaitcount.intent_exclusiveps

Number 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.

mongodb.locks.mmapv1journal.acquirewaitcount.intent_sharedps

Number 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.

mongodb.locks.mmapv1journal.timeacquiringmicros.intent_exclusiveps

Wait time for the MMAPv1 storage engine lock type acquisitions in the Intent Exclusive (IX) mode.

mongodb.locks.mmapv1journal.timeacquiringmicros.intent_sharedps

Wait time for the MMAPv1 storage engine lock type acquisitions in the Intent Shared (IS) mode.

mongodb.locks.oplog.acquirecount.intent_exclusiveps

Number of times the oplog lock type was acquired in the Intent Exclusive (IX) mode.

mongodb.locks.oplog.acquirecount.sharedps

Number of times the oplog lock type was acquired in the Shared (S) mode.

mongodb.locks.oplog.acquirewaitcount.intent_exclusiveps

Number of times the oplog lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.oplog.acquirewaitcount.sharedps

Number of times the oplog lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode.

mongodb.locks.oplog.timeacquiringmicros.intent_exclusiveps

Wait time for the oplog lock type acquisitions in the Intent Exclusive (IX) mode.

mongodb.locks.oplog.timeacquiringmicros.sharedps

Wait time for the oplog lock type acquisitions in the Shared (S) mode.

mongodb.mem.bits

Size of the in-memory storage engine.

mongodb.mem.mapped

Amount of mapped memory by the database.

mongodb.mem.mappedwithjournal

The amount of mapped memory, including the memory used for journaling.

mongodb.mem.resident

Amount of memory currently used by the database process.

mongodb.mem.virtual

Amount of virtual memory used by the mongod process.

mongodb.metrics.commands.count.failed

Number of times count failed

mongodb.metrics.commands.count.total

Number of times count executed

mongodb.metrics.commands.createIndexes.failed

Number of times createIndexes failed

mongodb.metrics.commands.createIndexes.total

Number of times createIndexes executed

mongodb.metrics.commands.delete.failed

Number of times delete failed

mongodb.metrics.commands.delete.total

Number of times delete executed

mongodb.metrics.commands.eval.failed

Number of times eval failed

mongodb.metrics.commands.eval.total

Number of times eval executed

mongodb.metrics.commands.findAndModify.failed

Number of times findAndModify failed

mongodb.metrics.commands.findAndModify.total

Number of times findAndModify executed

mongodb.metrics.commands.insert.failed

Number of times insert failed

mongodb.metrics.commands.insert.total

Number of times insert executed

mongodb.metrics.commands.update.failed

Number of times update failed

mongodb.metrics.commands.update.total

Number of times update executed

mongodb.metrics.cursor.open.notimeout

Number of open cursors with the option `DBQuery.Option.noTimeout` set to prevent timeout after a period of inactivity.

mongodb.metrics.cursor.open.pinned

Number of pinned open cursors.

mongodb.metrics.cursor.open.total

Number of cursors that MongoDB is maintaining for clients.

mongodb.metrics.cursor.timedoutps

Number of cursors that time out, per second.

mongodb.metrics.document.deletedps

Number of documents deleted per second.

mongodb.metrics.document.insertedps

Number of documents inserted per second.

mongodb.metrics.document.returnedps

Number of documents returned by queries per second.

mongodb.metrics.document.updatedps

Number of documents updated per second.

mongodb.metrics.getlasterror.wtime.numps

Number 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.

mongodb.metrics.getlasterror.wtime.totalmillisps

Fraction 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.

mongodb.metrics.getlasterror.wtimeoutsps

Number of times per second that write concern operations have timed out as a result of the wtimeout threshold to getLastError

mongodb.metrics.operation.fastmodps

Number of update operations per second that neither cause documents to grow nor require updates to the index.

mongodb.metrics.operation.idhackps

Number of queries per second that contain the _id field.

mongodb.metrics.operation.writeconflictsps

Number of times per second that write concern operations has encounter a conflict.

mongodb.metrics.operation.scanandorderps

Number of queries per second that return sorted numbers that cannot perform the sort operation using an index.

mongodb.metrics.queryexecutor.scannedps

Number of index items scanned per second during queries and query-plan evaluation.

mongodb.metrics.record.movesps

Number of times per second documents move within the on-disk representation of the MongoDB data set.

mongodb.metrics.repl.apply.batches.numps

Number of batches applied across all databases per second.

mongodb.metrics.repl.apply.batches.totalmillisps

Fraction of time (ms/s) the mongod has spent applying operations from the oplog.

mongodb.metrics.repl.apply.opsps

Number of oplog operations applied per second.

mongodb.metrics.repl.buffer.count

Number of operations in the oplog buffer.

mongodb.metrics.repl.buffer.maxsizebytes

Maximum size of the buffer.

mongodb.metrics.repl.buffer.sizebytes

Current size of the contents of the oplog buffer.

mongodb.metrics.repl.network.bytesps

Amount of data read from the replication sync source per second.

mongodb.metrics.repl.network.getmores.numps

Number of getmore operations per second.

mongodb.metrics.repl.network.getmores.totalmillisps

Fraction of time (ms/s) required to collect data from getmore operations.

mongodb.metrics.repl.network.opsps

Number of operations read from the replication source per second.

mongodb.metrics.repl.network.readerscreatedps

Number of oplog query processes created per second.

mongodb.metrics.repl.preload.docs.numps

Number of documents loaded during the pre-fetch stage of replication.

mongodb.metrics.repl.preload.docs.totalmillisps

Amount of time spent loading documents as part of the pre-fetch stage of replication.

mongodb.metrics.repl.preload.indexes.numps

Number of index entries loaded by members before updating documents as part of the pre-fetch stage of replication.

mongodb.metrics.repl.preload.indexes.totalmillisps

Amount of time spent loading documents as part of the pre-fetch stage of replication.

mongodb.metrics.ttl.deleteddocumentsps

Number of documents deleted from collections with a ttl index per second.

mongodb.metrics.ttl.passesps

Number of times per second the background process removes documents from collections with a ttl index.

mongodb.network.bytesinps

The number of bytes that reflects the amount of network traffic received by this database.

mongodb.network.bytesoutps

The number of bytes that reflects the amount of network traffic sent from this database.

mongodb.network.numrequestsps

Number of distinct requests that the server has received.

mongodb.opcounters.commandps

Total number of commands per second issued to the database.

mongodb.opcounters.deleteps

Number of delete operations per second.

mongodb.opcounters.getmoreps

Number of getmore operations per second.

mongodb.opcounters.insertps

Number of insert operations per second.

mongodb.opcounters.queryps

Total number of queries per second.

mongodb.opcounters.updateps

Number of update operations per second.

mongodb.opcountersrepl.commandps

Total number of replicated commands issued to the database per second.

mongodb.opcountersrepl.deleteps

Number of replicated delete operations per second.

mongodb.opcountersrepl.getmoreps

Number of replicated getmore operations per second.

mongodb.opcountersrepl.insertps

Number of replicated insert operations per second.

mongodb.opcountersrepl.queryps

Total number of replicated queries per second.

mongodb.opcountersrepl.updateps

Number of replicated update operations per second.

mongodb.oplog.logsizemb

Total size of the oplog.

mongodb.oplog.timediff

Oplog window: difference between the first and last operation in the oplog.

mongodb.oplog.usedsizemb

Total amount of space used by the oplog.

mongodb.replset.health

Member health value of the replica set: conveys if the member is up (i.e. 1) or down (i.e. 0).

mongodb.replset.replicationlag

Delay between a write operation on the primary and its copy to a secondary.

mongodb.replset.state

State of a replica that reflects its disposition within the set.

mongodb.replset.votefraction

Fraction of votes a server will cast in a replica set election.

mongodb.replset.votes

The number of votes a server will cast in a replica set election.

mongodb.stats.datasize

Total size of the data held in this database including the padding factor.

mongodb.stats.indexes

Total number of indexes across all collections in the database.

mongodb.stats.indexsize

Total size of all indexes created on this database.

mongodb.stats.objects

Number of objects (documents) in the database across all collections.

mongodb.stats.storagesize

Total amount of space allocated to collections in this database for document storage.

mongodb.uptime

Number of seconds that the mongos or mongod process has been active.

mongodb.wiredtiger.cache.bytes_currently_in_cache

Size of the data currently in cache.

mongodb.wiredtiger.cache.failed_eviction_of_pages_exceeding_the_in_memory_maximumps

Number of failed eviction of pages that exceeded the in-memory maximum, per second.

mongodb.wiredtiger.cache.in_memory_page_splits

In-memory page splits.

mongodb.wiredtiger.cache.maximum_bytes_configured

Maximum cache size.

mongodb.wiredtiger.cache.maximum_page_size_at_eviction

Maximum page size at eviction.

mongodb.wiredtiger.cache.modified_pages_evicted

Number of pages, that have been modified, evicted from the cache.

mongodb.wiredtiger.cache.pages_currently_held_in_cache

Number of pages currently held in the cache.

mongodb.wiredtiger.cache.pages_evicted_by_application_threadsps

Number of page evicted by application threads per second.

mongodb.wiredtiger.cache.pages_evicted_exceeding_the_in_memory_maximumps

Number of pages evicted because they exceeded the cache in-memory maximum, per second.

mongodb.wiredtiger.cache.tracked_dirty_bytes_in_cache

Size of the dirty data in the cache.

mongodb.wiredtiger.cache.unmodified_pages_evicted

Number of pages, that were not modified, evicted from the cache.

mongodb.wiredtiger.concurrenttransactions.read.available

Number of available read tickets (concurrent transactions) remaining.

mongodb.wiredtiger.concurrenttransactions.read.out

Number of read tickets (concurrent transactions) in use.

mongodb.wiredtiger.concurrenttransactions.read.totaltickets

Total number of read tickets (concurrent transactions) available.

mongodb.wiredtiger.concurrenttransactions.write.available

Number of available write tickets (concurrent transactions) remaining.

mongodb.wiredtiger.concurrenttransactions.write.out

Number of write tickets (concurrent transactions) in use.

mongodb.wiredtiger.concurrenttransactions.write.totaltickets

Total number of write tickets (concurrent transactions) available.

mongodb.collection.size

The total size in bytes of the data in the collection plus the size of every indexes on the mongodb.collection.

mongodb.collection.avgObjSize

The size of the average object in the collection in bytes.

mongodb.collection.count

Total number of objects in the collection.

mongodb.collection.capped

Whether or not the collection is capped.

mongodb.collection.max

Maximum number of documents in a capped collection.

mongodb.collection.maxSize

Maximum size of a capped collection in bytes.

mongodb.collection.storageSize

Total storage space allocated to this collection for document storage.

mongodb.collection.nindexes

Total number of indices on the collection.

mongodb.collection.indexSizes

Size of index in bytes.

mongodb.collection.indexes.accesses.ops

Number of time the index was used.

mongodb.usage.commands.countps

Number of commands per second

mongodb.usage.commands.count

Number of commands since server start (deprecated)

mongodb.usage.commands.time

Total time spent performing commands in microseconds

mongodb.usage.getmore.countps

Number of getmore per second

mongodb.usage.getmore.count

Number of getmore since server start (deprecated)

mongodb.usage.getmore.time

Total time spent performing getmore in microseconds

mongodb.usage.insert.countps

Number of inserts per second

mongodb.usage.insert.count

Number of inserts since server start (deprecated)

mongodb.usage.insert.time

Total time spent performing inserts in microseconds

mongodb.usage.queries.countps

Number of queries per second

mongodb.usage.queries.count

Number of queries since server start (deprecated)

mongodb.usage.queries.time

Total time spent performing queries in microseconds

mongodb.usage.readLock.countps

Number of read locks per second

mongodb.usage.readLock.count

Number of read locks since server start (deprecated)

mongodb.usage.readLock.time

Total time spent performing read locks in microseconds

mongodb.usage.remove.countps

Number of removes per second

mongodb.usage.remove.count

Number of removes since server start (deprecated)

mongodb.usage.remove.time

Total time spent performing removes in microseconds

mongodb.usage.total.countps

Number of operations per second

mongodb.usage.total.count

Number of operations since server start (deprecated)

mongodb.usage.total.time

Total time spent performing operations in microseconds

mongodb.usage.update.countps

Number of updates per second

mongodb.usage.update.count

Number of updates since server start (deprecated)

mongodb.usage.update.time

Total time spent performing updates in microseconds

mongodb.usage.writeLock.countps

Number of write locks per second

mongodb.usage.writeLock.count

Number of write locks since server start (deprecated)

mongodb.usage.writeLock.time

Total time spent performing write locks in microseconds