MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.

Prerequisites

  1. To monitor MongoDB, you need the credentials of the user with the roles “read” and “clusterMonitor”.
1. use admin
2. db.createUser({"user":"<username>","pwd":"<password>","roles":[{role:"read",db:"admin"},{role:"clusterMonitor",db:"admin"},{ role: "read", db: "local" }]})
  1. For Virtual Machines, install the Linux Agent.

Configuring the credentials

Configure the credentials in the directory /opt/opsramp/agent/conf/app.d/creds.yaml

mongodb:
- name: mongodb
  user: <username>
  pwd: <Password>
  encoding-type: plain
  labels:
    key1: val1
    key2: val2

Configuring the application

Virtual machine

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-detection.yaml

- name: mongodb
  instance-checks:
    service-check:
      - mongod
      - mongodb
    process-check:
      - mongodb
    port-check:
      - 27017
      - 27018
      - 27019

Docker environment

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-container-detection.yaml

- name: mongodb
  container-checks:
    image-check:
      - mongo
    port-check:
      - 27017
      - 27018
      - 27019

Kubernetes environment

Configure the application in config.yaml

- name: mongodb
  container-checks:
    image-check:
      - mongo
    port-check:
      - 27017
      - 27018
      - 27019

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnit
mongodb_asserts_msg

Number of message assertions raised per second
Asserts Msgassertions / second
mongodb_asserts_regular

Number of regular assertions raised per second
Asserts Regularassertions / second
mongodb_asserts_rollovers

Number of times the rollover counters roll over per second. The counters rollover to zero every 60 assertions
Asserts Rolloversassertions / second
mongodb_asserts_user

Number of user assertions raised per second
Asserts Userassertions / second
mongodb_asserts_warning

Number of warnings raised per second
Asserts Warningassertions / second
mongodb_backgroundFlushing_AverageMs

Average time for each flush to disk
Backgroundflushing Averagemsmilliseconds
mongodb_backgroundFlushing_flushes

Number of times the database has flushed all writes to disk
Backgroundflushing Flushesflush / second
mongodb_backgroundFlushing_last_ms

Amount of time that the last flush operation took to complete
Backgroundflushing Last Msmilliseconds
mongodb_backgroundFlushing_total_ms

Total number of time that the MongoDB processes have spent writing ie flushing data to disk
Backgroundflushing Total Msmilliseconds
mongodb_connections_available

Number of unused available incoming connections the database can provide
Connections Availableconnections
mongodb_connections_current

Number of connections to the database server from clients
Connections Currentconnections
mongodb_connections_totalCreated

Total number of connections created
Connections Totalcreatedconnections
mongodb_cursors_timedOut

Total number of cursors that have timed out since the server process started
Cursors Timedoutcursors
mongodb_cursors_totalOpen

Number of cursors that MongoDB is maintaining for clients
Cursors Totalopencursors
mongodb_dbs_count

Total number of existing databases
Dbs Countitems
mongodb_dur_commits

Number of transactions written to the journal during the last journal group commit interval
Dur Commitstransactions
mongodb_dur_commitsInWriteLock

Count of the commits that occurred while a write lock was held
Dur Commitsinwritelockcommits
mongodb_dur_compression

Compression ratio of the data written to the journal
Dur Compressionfractions
mongodb_dur_earlyCommits

Number of times MongoDB requested a commit before the scheduled journal group commit interval
Dur Earlycommitscommits
mongodb_dur_journaledMB

Amount of data written to journal during the last journal group commit interval
Dur Journaledmbmebibytes
mongodb_dur_timems_Commits

Amount of time spent for commits
Dur Timems Commitsmilliseconds
mongodb_dur_timems_CommitsInWriteLock

Amount of time spent for commits that occurred while a write lock was held
Dur Timems Commitsinwritelockmilliseconds
mongodb_dur_timems_dt

Amount of time over which MongoDB collected the durtimeMS data
Dur Timems Dtmilliseconds
mongodb_dur_timems_prepLogBuffer

Amount of time spent preparing to write to the journal
Dur Timems Preplogbuffermillisecond
mongodb_dur_timems_remapPrivateView

Amount of time spent remapping copyonwrite memory mapped views
Dur Timems Remapprivateviewmilliseconds
mongodb_dur_timems_writeToDataFiles

Amount of time spent writing to data files after journaling
Dur Timems Writetodatafilesmilliseconds
mongodb_dur_timems_writeToJournal

Amount of time spent writing to the journal
Dur Timems Writetojournalmilliseconds
mongodb_dur_writeToDataFiles

Amount of data written from journal to the data files during the last journal group commit interval
Dur Writetodatafilesmebibytes
mongodb_extra_info_page_faults

Number of page faults per second that require disk operations
Extra Info Page Faultsfaults
mongodb_fsync_lockCount

Number of fsynclocked performed on a mongo instance
Fsync Lockcount
mongodb_globalLock_activeClients_readers

Count of the active client connections performing read operations
Globallock Activeclients Readersconnections
mongodb_globalLock_activeClients_total

Total number of active client connections to the database
Globallock Activeclients Totalconnections
mongodb_globalLock_activeClients_writers

Count of active client connections performing write operations
Globallock Activeclients Writersconnections
mongodb_globalLock_currentQueue_readers

Number of operations that are currently queued and waiting for the read lock
Globallock Currentqueue Readersoperations
mongodb_globalLock_currentQueue_total

Total number of operations queued waiting for the lock
Globallock Currentqueue Totaloperations
mongodb_globalLock_currentQueue_writers

Number of operations that are currently queued and waiting for the write lock
Globallock Currentqueue Writersoperations
mongodb_globalLock_lockTime

Time since the database last started that the globalLock has been held
Globallock Locktimemilliseconds
mongodb_globalLock_ratio

Ratio of the time that the globalLock has been held to the total time since it was created
Globallock Ratiofraction
mongodb_globalLock_totalTime

Time since the database last started and created the global lock
Globallock Totaltimemicroseconds
mongodb_indexCounters_accesses

Number of times that operations have accessed indexes per second
Indexcounters Accessesevents
mongodb_indexCounters_hits

Number of times an index has been accessed per second and MongoDB is able to return the index from memory
Indexcounters Hitshits
mongodb_indexCounters_misses

Number of times, per second, an operation is attempted to access an index that was not in memory
Indexcounters Missesmiss
mongodb_indexCounters_missRatio

Ratio of index hits to misses
Indexcounters Missratiofraction
mongodb_indexCounters_reset

Number of times per second the index counters have been reset
Indexcounters Resetevent
mongodb_locks_Collection_acquireCount_Exclusive

Number of times the collection lock type was acquired in the Exclusive X mode
Locks Collection Acquirecount Exclusivelocks / second
mongodb_locks_Collection_acquireCount_Intent_Exclusive

Number of times the collection lock type was acquired in the Intent Exclusive IX mode
Locks Collection Acquirecount Intent Exclusivelocks / second
mongodb_locks_Collection_acquireCount_Intent_Shared

Number of times the collection lock type was acquired in the Intent Shared IS mode
Locks Collection Acquirecount Intent Sharedlocks / second
mongodb_locks_Collection_acquireCount_Shared

Number of times the collection lock type was acquired in the Shared S mode
Locks Collection Acquirecount Sharedlocks / second
mongodb_locks_Collection_acquireWaitCount_Exclusive

Number of times the collection lock type acquisition in the Exclusive X mode encountered waits because the locks were held in a conflicting mode
Locks Collection Acquirewaitcount Exclusivewait / second
mongodb_locks_Collection_acquireWaitCount_Shared

Number of times the collection lock type acquisition in the Shared S mode encountered waits because the locks were held in a conflicting mode
Locks Collection Acquirewaitcount Sharedwait / second
mongodb_locks_Collection_timeAcquiringMicros_Exclusive

Wait time for the collection lock type acquisitions in the Exclusive X mode
Locks Collection Timeacquiringmicros Exclusivefraction
mongodb_locks_Collection_timeAcquiringMicros_Shared

Wait time for the collection lock type acquisitions in the Shared S mode
Locks Collection Timeacquiringmicros Sharedfraction
mongodb_locks_Database_acquireCount_Exclusive

Number of times the database lock type was acquired in the Exclusive X mode
Locks Database Acquirecount Exclusivelock / second
mongodb_locks_Database_acquireCount_Intent_Exclusive

Number of times the database lock type was acquired in the Intent Exclusive IX mode
Locks Database Acquirecount Intent Exclusivelock / second
mongodb_locks_Database_acquireCount_Intent_Shared

Number of times the database lock type was acquired in the Intent Shared IS mode
Locks Database Acquirecount Intent Sharedlock / second
mongodb_locks_Database_acquireCount_Shared

Number of times the database lock type was acquired in the Shared S mode
Locks Database Acquirecount Sharedlock / second
mongodb_locks_Database_acquireWaitCount_Exclusive

Number of times the database lock type acquisition in the Exclusive X mode encountered waits because the locks were held in a conflicting mode
Locks Database Acquirewaitcount Exclusivewait / second
mongodb_locks_Database_acquireWaitCount_Intent_Exclusive

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
Locks Database Acquirewaitcount Intent Exclusivewait / second
mongodb_locks_Database_acquireWaitCount_Intent_Shared

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
Locks Database Acquirewaitcount Intent Sharedwait / second
mongodb_locks_Database_acquireWaitCount_Shared

Number of times the database lock type acquisition in the Shared S mode encountered waits because the locks were held in a conflicting mode
Locks Database Acquirewaitcount Sharedwait / second
mongodb_locks_Database_timeAcquiringMicros_Exclusive

Wait time for the database lock type acquisitions in the Exclusive X mode
Locks Database Timeacquiringmicros Exclusivefraction
mongodb_locks_Database_timeAcquiringMicros_Intent_Exclusive

Wait time for the database lock type acquisitions in the Intent Exclusive IX mode
Locks Database Timeacquiringmicros Intent Exclusivefraction
mongodb_locks_Database_timeAcquiringMicros_Intent_Shared

Wait time for the database lock type acquisitions in the Intent Shared IS mode
Locks Database Timeacquiringmicros Intent Sharedfraction
mongodb_locks_Database_timeAcquiringMicros_Shared

Wait time for the database lock type acquisitions in the Shared S mode
Locks Database Timeacquiringmicros Sharedfraction
mongodb_locks_Global_acquireCount_Exclusive

Number of times the global lock type was acquired in the Exclusive X mode
Locks Global Acquirecount Exclusivelock / second
mongodb_locks_Global_acquireCount_Intent_Exclusive

Number of times the global lock type was acquired in the Intent Exclusive IX mode
Locks Global Acquirecount Intent Exclusivelock / second
mongodb_locks_Global_acquireCount_Intent_Shared

Number of times the global lock type was acquired in the Intent Shared IS mode
Locks Global Acquirecount Intent Sharedlock / second
mongodb_locks_Global_acquireCount_Shared

Number of times the global lock type was acquired in the Shared S mode
Locks Global Acquirecount Sharedlocks / second
mongodb_locks_Global_acquireWaitCount_Exclusive

Number of times the global lock type acquisition in the Exclusive X mode encountered waits because the locks were held in a conflicting mode
Locks Global Acquirewaitcount Exclusivewaits / second
mongodb_locks_Global_acquireWaitCount_Intent_Exclusive

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
Locks Global Acquirewaitcount Intent Exclusivewaits / second
mongodb_locks_Global_acquireWaitCount_Intent_Shared

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
Locks Global Acquirewaitcount Intent Sharedwaits / second
mongodb_locks_Global_acquireWaitCount_Shared

Number of times the global lock type acquisition in the Shared S mode encountered waits because the locks were held in a conflicting mode
Locks Global Acquirewaitcount Sharedwaits / second
mongodb_locks_Global_timeAcquiringMicros_Exclusive

Wait time for the global lock type acquisitions in the Exclusive X mode
Locks Global Timeacquiringmicros Exclusivefraction
mongodb_locks_Global_timeAcquiringMicros_Intent_Exclusive

Wait time for the global lock type acquisitions in the Intent Exclusive IX mode
Locks Global Timeacquiringmicros Intent Exclusivefraction
mongodb_locks_Global_timeAcquiringMicros_Intent_Shared

Wait time for the global lock type acquisitions in the Intent Shared IS mode
Locks Global Timeacquiringmicros Intent Sharedfraction
mongodb_locks_Global_timeAcquiringMicros_Shared

Wait time for the global lock type acquisitions in the Shared S mode
Locks Global Timeacquiringmicros Sharedfraction
mongodb_locks_Metadata_acquireCount_Intent_Exclusive

Number of times the metadata lock type was acquired in the Exclusive X mode
Locks Metadata Acquirecount Intent Exclusivelocks / second
mongodb_locks_Metadata_acquireCount_Intent_Shared

Number of times the metadata lock type was acquired in the Shared S mode
Locks Metadata Acquirecount Intent Sharedlocks / second
mongodb_locks_MMAPV1Journal_acquireCount_Intent_Exclusive

Number of times the MMAPv1 storage engine lock type was acquired in the Intent Exclusive IX mode
Mongodb Locks Mmapv1Journal Acquirecount Intent Exclusivepslocks
mongodb_locks_MMAPV1Journal_acquireCount_Intent_Shared

Number of times the MMAPv1 storage engine lock type was acquired in the Intent Shared IS mode
Mongodb Locks Mmapv1Journal Acquirecount Intent Sharedpslocks
mongodb_locks_MMAPV1Journal_acquireWaitCount_Intent_Exclusive

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 Exclusivepswaits
mongodb_locks_MMAPV1Journal_acquireWaitCount_Intent_Shared

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 Acquirewaitcount Intent Sharedpswaits
mongodb_locks_MMAPV1Journal_timeAcquiringMicros_Intent_Exclusive

Wait time for the MMAPv1 storage engine lock type acquisitions in the Intent Exclusive IX mode
Mongodb Locks Mmapv1Journal Timeacquiringmicros Intent Exclusivepsfraction
mongodb_locks_MMAPV1Journal_timeAcquiringMicros_Intent_Shared

Wait time for the MMAPv1 storage engine lock type acquisitions in the Intent Shared IS mode
Mongodb Locks Mmapv1Journal Timeacquiringmicros Intent Sharedpsfraction
mongodb_locks_oplog_acquireCount_Intent_Exclusive

Number of times the oplog lock type was acquired in the Intent Exclusive IX mode
Locks Oplog Acquirecount Intent Exclusivelocks / second
mongodb_locks_oplog_acquireCount_Intent_Shared

Number of times the oplog lock type was acquired in the Shared S mode
Locks Oplog Acquirecount Intent Sharedlocks / second
mongodb_locks_oplog_acquireWaitCount_Intent_Exclusive

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
Locks Oplog Acquirewaitcount Intent Exclusivewaits / second
mongodb_locks_oplog_acquireWaitCount_Shared

Number of times the oplog lock type acquisition in the Shared S mode encountered waits because the locks were held in a conflicting mode
Locks Oplog Acquirewaitcount Sharedwaits / second
mongodb_locks_oplog_timeAcquiringMicros_Intent_Exclusive

Wait time for the oplog lock type acquisitions in the Intent Exclusive IX mode
Locks Oplog Timeacquiringmicros Intent Exclusivefraction
mongodb_locks_oplog_timeAcquiringMicros_Shared

Wait time for the oplog lock type acquisitions in the Shared S mode
Locks Oplog Timeacquiringmicros Sharedfraction
mongodb_mem_bits

Size of the in-memory storage engine
Mem Bitsmebibytes
mongodb_mem_mapped

Amount of mapped memory by the database
Mem Mappedmebibytes
mongodb_mem_mappedWithJournal

The amount of mapped memory including the memory used for journaling
Mem Mappedwithjournalmebibytes
mongodb_mem_resident

Amount of memory currently used by the database process
Mem Residentmebibytes
mongodb_mem_virtual

Amount of virtual memory used by the mongod process
Mem Virtualmebibytes
mongodb_metrics_commands_count_failed

Number of times count failed
Metrics Commands Count Failedcommands
mongodb_metrics_commands_count_total

Number of times count executed
Metrics Commands Count Totalcommands
mongodb_metrics_commands_createIndexes_failed

Number of times createIndexes failed
Metrics Commands Createindexes Failedcommands
mongodb_metrics_commands_createIndexes_total

Number of times createIndexes executed
Metrics Commands Createindexes Totalcommands
mongodb_metrics_commands_delete_failed

Number of times delete failed
Metrics Commands Delete Failedcommands
mongodb_metrics_commands_delete_total

Number of times delete executed
Metrics Commands Delete Totalcommands
mongodb_metrics_commands_eval_failed

Number of times evaluation failed
Metrics Commands Eval Failedcommands
mongodb_metrics_commands_eval_total

Number of times evaluation executed
Metrics Commands Eval Totalcommands
mongodb_metrics_commands_findAndModify_failed

Number of times findAndModify failed
Metrics Commands Findandmodify Failedcommands
mongodb_metrics_commands_findAndModify_total

Number of times findAndModify executed
Metrics Commands Findandmodify Totalcommands
mongodb_metrics_commands_insert_failed

Number of times insert failed
Metrics Commands Insert Failedcommands
mongodb_metrics_commands_insert_total

Number of times insert executed
Metrics Commands Insert Totalcommands
mongodb_metrics_commands_update_failed

Number of times update failed
Metrics Commands Update Failedcommands
mongodb_metrics_commands_update_total

Number of times update executed
Metrics Commands Update Totalcommands
mongodb_metrics_cursor_open_noTimeout

Number of open cursors with the option DBQueryOptionnoTimeout set to prevent timeout after a period of inactivity
Metrics Cursor Open Notimeoutcursors
mongodb_metrics_cursor_open_pinned

Number of pinned open cursors
Metrics Cursor Open Pinnedcursors
mongodb_metrics_cursor_open_total

Number of cursors that MongoDB is maintaining for clients
Metrics Cursor Open Totalcursors
mongodb_metrics_cursor_timedOut

Number of cursors that time out per second
Metrics Cursor Timedoutcursors / second
mongodb_metrics_document_deleted

Number of documents deleted per second
Metrics Document Deleteddocuments / second
mongodb_metrics_document_inserted

Number of documents inserted per second
Metrics Document Inserteddocuments / second
mongodb_metrics_document_returned

Number of documents returned by queries per second
Metrics Document Returneddocuments / second
mongodb_metrics_document_updated

Number of documents updated per second
Metrics Document Updateddocuments / second
mongodb_metrics_getLastError_wtime_num

Number of getLastError operations per second with a specified write concern. Wait for one or more members of a replica set to acknowledge the write operation
Metrics Getlasterror Wtime Numoperations / second
mongodb_metrics_getLastError_wtime_totalMillis

Fraction of time ms per s that the mongodb has spent performing getLastError operations with write concern ie w that wait for one or more members of a replica set to acknowledge the write operation
Metrics Getlasterror Wtime Totalmillisfraction
mongodb_metrics_getLastError_wtimeouts

Number of times per second the write concern operations have timed out as a result of the wtimeout threshold to getLastError
Metrics Getlasterror Wtimeoutsevents / second
mongodb_metrics_operation_fastmod

Number of update operations per second that neither cause documents to grow nor require updates to the index
Metrics Operation Fastmodoperations / second
mongodb_metrics_operation_idhack

Number of queries per second that contain the ID field
Metrics Operation Idhackqueries / second
mongodb_metrics_operation_writeConflicts

Number of times per second that write concern operations has encounter a conflict
Metrics Operation Writeconflictsevents
mongodb_metrics_operation_scanAndOrder

Number of queries per second that return sorted numbers that cannot perform the sort operation using an index
Metrics Operation Scanandorderquery
mongodb_metrics_queryExecutor_scanned

Number of index items scanned per second during queries and queryplan evaluation
Metrics Queryexecutor Scannedoperations
mongodb_metrics_record_moves

Number of times per second documents move within the ondisk representation of the MongoDB data set
Metrics Record Movesoperations
mongodb_metrics_repl_apply_batches_num

Number of batches applied across all databases per second
Metrics Repl Apply Batches Numoperations / second
mongodb_metrics_repl_apply_batches_totalMillis

Fraction of time ms per s the MongoDB has spent applying operations from the oplog
Metrics Repl Apply Batches Totalmillisfraction
mongodb_metrics_repl_apply_ops

Number of oplog operations applied per second
Metrics Repl Apply Opsoperations / second
mongodb_metrics_repl_buffer_count

Number of operations in the oplog buffer
Metrics Repl Buffer Countoperations / second
mongodb_metrics_repl_buffer_maxSizeBytes

Maximum size of the buffer
Metrics Repl Buffer Maxsizebytesbytes
mongodb_metrics_repl_buffer_sizeBytes

Current size of the contents of the oplog buffer
Metrics Repl Buffer Sizebytesbytes
mongodb_metrics_repl_network_bytes

Amount of data read from the replication sync source per second
Metrics Repl Network Bytesbytes / second
mongodb_metrics_repl_network_getmores_num

Number of getmore operations per second
Metrics Repl Network Getmores Numoperations / second
mongodb_metrics_repl_network_getmores_totalMillis

Fraction of time ms per s required to collect data from getmore operations
Metrics Repl Network Getmores Totalmillisfractions / second
mongodb_metrics_repl_network_ops

Number of operations read from the replication source per second
Metrics Repl Network Opsoperations / second
mongodb_metrics_repl_network_readersCreated

Number of oplog query processes created per second
Metrics Repl Network Readerscreatedprocesses / second
mongodb_metrics_repl_preload_docs_num

Number of documents loaded during the prefetch stage of replication
Metrics Repl Preload Docs Numdocuments / second
mongodb_metrics_repl_preload_docs_totalMillis

Amount of time spent loading documents as part of the prefetch stage of replication
Metrics Repl Preload Docs Totalmillismilliseconds
mongodb_metrics_repl_preload_indexes_num

Amount of time spent loading documents as part of the prefetch stage of replication
Metrics Repl Preload Indexes Nummilliseconds
mongodb_metrics_ttl_deletedDocuments

Number of documents deleted from collections with a ttl index per second
Metrics Ttl Deleteddocumentsdocuments / second
mongodb_metrics_ttl_passes

Number of times per second the background process removes documents from collections with a ttl index
Metrics Ttl Passesoperations / second
mongodb_network_bytesIn

The number of bytes that reflects the amount of network traffic received by this database
Network Bytesinbytes / second
mongodb_network_bytesOut

The number of bytes that reflects the amount of network traffic sent from this database
Network Bytesoutbytes / second
mongodb_network_numRequests

Number of distinct requests that the server has received
Network Numrequestsrequests / second
mongodb_opcountes_command

Total number of commands per second issued to the database
Opcountes Commandcommands / second
mongodb_opcountes_delete

Number of delete operations per second
Opcountes Deleteoperations / second
mongodb_opcountes_getmore

Number of getmore operations per second
Opcountes Getmoreoperations / second
mongodb_opcountes_insert

Number of insert operations per second
Opcountes Insertoperations / second
mongodb_opcountes_query

Total number of queries per second
Opcountes Queryquery / second
mongodb_opcountes_update

Number of update operations per second
Opcountes Updateoperations / second
mongodb_opcountersRepl_command

Total number of replicated commands issued to the database per second
Opcountersrepl Commandcommands / second
mongodb_opcountersRepl_delete

Number of replicated delete operations per second
Opcountersrepl Deleteoperations / second
mongodb_opcountersRepl_getmore

Number of replicated getmore operations per second
Opcountersrepl Getmoreoperations / second
mongodb_opcountersRepl_insert

Number of replicated insert operations per second
Opcountersrepl Insertoperations / second
mongodb_opcountersRepl_query

Total number of replicated queries per second
Opcountersrepl Queryquery / second
mongodb_opcountersRepl_update

Number of replicated update operations per second
Opcountersrepl Updateoperations / second
mongodb_replicationlag

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

State of a replica that reflects its disposition within the set
Mystate
mongodb_stats_dataSize

Total size of the data held in this database including the padding factor
Stats Datasizebytes
mongodb_stats_indexes

Total number of indexes across all collections in the database
Stats Indexesindex
mongodb_stats_indexSize

Total size of all indexes created on this database
Stats Indexsizebytes
mongodb_stats_objects

Number of objects documents in the database across all collections
Stats Objectsobjects
mongodb_stats_storageSize

Total amount of space allocated to collections in this database for document storage
Stats Storagesizebytes
mongodb_uptime

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

Size of the data currently in cache
Wiredtiger Cache Cache.Bytes Currently In Cachebytes
mongodb_wiredtiger_cache_in_memory_page_splits

In-memory page splits
Wiredtiger Cache In Memory Page Splitssplit
mongodb_wiredtiger_cache_maximum_bytes_configured

Maximum cache size
Wiredtiger Cache Maximum Bytes Configuredbytes
mongodb_wiredtiger_cache_maximum_page_size_at_eviction

Maximum page size at eviction
Wiredtiger Cache Maximum Page Size At Evictionbytes
mongodb_wiredtiger_cache_modified_pages_evicted

Number of pages that have been modified evicted from the cache
Wiredtiger Cache Modified Pages Evictedpage
mongodb_wiredtiger_cache_pages_currently_held_in_cache

Number of pages currently held in the cache
Wiredtiger Cache Pages Currently Held In Cachepage
mongodb_wiredtiger_cache_pages_evicted_by_application_threads

Number of page evicted by application threads per second
Wiredtiger Cache Pages Evicted By Application Threadspage
mongodb_wiredtiger_cache_tracked_dirty_bytes_in_cache

Size of the dirty data in the cache
Wiredtiger Cache Tracked Dirty Bytes In Cachebytes
mongodb_wiredtiger_cache_unmodified_pages_evicted

Number of pages that were not modified evicted from the cache
Wiredtiger Cache Unmodified Pages Evictedpage
mongodb_wiredTiger_concurrentTransactions_write_available

Number of available read tickets concurrent transactions remaining
Wiredtiger Concurrenttransactions Write Availableticket
mongodb_wiredTiger_concurrentTransactions_read_out

Number of read tickets concurrent transactions in use
Wiredtiger Concurrenttransactions Read Outticket
mongodb_wiredTiger_concurrentTransactions_read_totalTickets

Total number of read tickets concurrent transactions available
Wiredtiger Concurrenttransactions Read Totalticketsticket
mongodb_wiredTiger_concurrentTransactions_write_out

Number of write tickets concurrent transactions in use
Wiredtiger Concurrenttransactions Write Outticket
mongodb_wiredTiger_concurrentTransactions_write_totalTickets

Total number of write tickets concurrent transactions available
Wiredtiger Concurrenttransactions Write Totalticketsticket
mongodb_collection_size

Total size in bytes of the data in the collection plus the size of every indexes on the mongodbcollection
Collection Sizebytes
mongodb_collection_avgObjSize

Size of the average object in the collection in bytes
Collection Avgobjsizebytes
mongodb_collection_count

Total number of objects in the collection
Collection Countitem
mongodb_collection_capped

Whether the collection is capped
Collection Cappedrecord
mongodb_collection_storageSize

Total storage space allocated to this collection for document storage
Collection Storagesizebytes
mongodb_collection_nindexes

Total number of indices on the collection
Collection Nindexesindex
mongodb_collection_totalIndexSize

Size of index in bytes
Collection Totalindexsizebytes
mongodb_top_commands_count

Number of commands per second
Top Commands Countcommands / second
mongodb_top_commands_time

Total time spent performing commands in microseconds
Top Commands Timemicroseconds
mongodb_top_getmore_count

Number of getmore per second
Top Getmore Countfetch
mongodb_top_getmore_time

Total time spent performing getmore in microseconds
Top Getmore Timemicroseconds
mongodb_top_insert_count

Number of inserts per second
Top Insert Countcommit
mongodb_top_insert_time

Total time spent performing inserts in microseconds
Top Insert Timemicroseconds
mongodb_top_queries_count

Number of queries per second
Top Queries Countquery
mongodb_top_queries_time

Total time spent performing queries in microseconds
Top Queries Timemicroseconds
mongodb_top_readLock_count

Number of read locks per second
Top Readlock Countlocks
mongodb_top_readLock_time

Total time spent performing read locks in microseconds
Top Readlock Timemicroseconds
mongodb_top_remove_count

Number of removals per second
Top Remove Countcommit
mongodb_top_remove_time

Total time spent performing removals in microseconds
Top Remove Timemicroseconds
mongodb_top_total_count

Number of operations per second
Top Total Countcommand
mongodb_top_total_time

Total time spent performing operations in microseconds
Top Total Timemicroseconds
mongodb_top_update_count

Number of updates per second
Top Update Countcommit
mongodb_top_update_time

Total time spent performing updates in microseconds
Top Update Timemicroseconds
mongodb_top_writeLock_count

Number of write locks per second
Top Writelock Countlocks
mongodb_top_writeLock_time

Total time spent performing write locks in microseconds
Top Writelock Timemicroseconds
mongodb_tcmalloc_generic_current_allocated_bytes

Bytes of system memory reserved by TCMalloc
Tcmalloc Generic Current Allocated Bytesbytes
mongodb_tcmalloc_aggressive_memory_decommit

Status of aggressive memory decommit mode
Tcmalloc Aggressive Memory Decommit
mongodb_tcmalloc_central_cache_free_bytes

Number of free bytes in the central cache
Tcmalloc Central Cache Free Bytesbytes
mongodb_tcmalloc_current_total_thread_cache_bytes

Number of bytes used across all thread caches
Tcmalloc Current Total Thread Cache Bytesbytes
mongodb_tcmalloc_max_total_thread_cache_bytes

Upper limit on total number of bytes stored across all perthread caches
Tcmalloc Max Total Thread Cache Bytesbytes
mongodb_tcmalloc_pageheap_free_bytes

Number of bytes in free mapped pages in page heap
Tcmalloc Pageheap Free Bytesbytes
mongodb_tcmalloc_pageheap_unmapped_bytes

Number of bytes in free unmapped pages in page heap
Tcmalloc Pageheap Unmapped Bytesbytes
mongodb_tcmalloc_thread_cache_free_bytes

Number of free bytes in thread caches
Tcmalloc Thread Cache Free Bytesbytes
mongodb_tcmalloc_transfer_cache_free_bytes

Number of free bytes that are waiting to be transfered between the central cache and a thread cache
Tcmalloc Transfer Cache Free Bytesbytes
mongodb_tcmalloc_spinlock_total_delay_ns

Spinlock delay time
Tcmalloc Spinlock Total Delay Nsnanoseconds