Keep track of your MongoDB server performance metrics such as queries per second, dropped queries and more.
MongoDB provides various metrics through their serverStatus command call. Setting up monitoring for MongoDB with Nixstats is easy, you can read more at our helpdesk.
The most important metrics to watch and alert to for MongoDB are asserts
which represent errors. More
details about asserts can be found in the mongodb log files, we recommend setting up logging to Nixstats for easy
management. You can setup a daily log alert to notify you of any assert errors in your logs.
The following metrics are available from the MongoDB monitoring plugin. Source code is available on GitHub.
Indicate internal server exceptions. Check the log file for more information about these messages.
Per operation invariants (for example “unexpected failure while reading a BSON document”). Check the log file for more information about these messages.
The number of times that the rollover counters have rolled over since the last time the MongoDB process started.
Indicates error returned to the client such as a duplicate key exception or write error.
Indicates less serious errors such as a low ulimit. Check the log file for more information about these messages.
The number of unused incoming connections available.
The number of incoming connections from clients to the database server .
Count of all incoming connections created to the server. This number includes connections that have since closed.
The number of the active client connections performing read operations.
The total number of internal client connections to the database including system threads as well as queued readers and writers.
The number of active client connections performing write operations.
The total number of operations queued waiting for the lock.
The number of operations that are currently queued and waiting for the write lock. A consistently small write-queue, particularly of shorter operations, is no cause for concern.
The number of operations that are currently queued and waiting for the read lock. A consistently small read-queue, particularly of shorter operations, should cause no concern.
1 for primary replicaset status, 0 for secondary.
Indicates a 64bit or 32bit instance of mongod
The value of mem.resident is roughly equivalent to the amount of RAM, in mebibyte (MiB), currently used by the database process.
Displays the quantity, in mebibyte (MiB), of virtual memory used by the mongod process.
The amount of members in a replicaset.
Query latency for command queries in microseconds.
The number of operations performed on the collection.
Query latency for read queries in microseconds.
The number of operations performed on the collection.
Query latency for write queries in microseconds.
The number of operations performed on the collection.
The amount of command operations per second.
The amount of delete operations per second.
The amount of getmore operations per second.
The amount of insert operations per second.
The amount of query operations per second.
The amount of update operations per second.
The number of replicated command operations per second.
The number of replicated delete operations per second.
The number of replicated getmore operations per second.
The number of replicated insert operations per second.
The number of replicated query operations per second.
The number of replicated update operations per second.
The total number of retry attempts that have been received after the corresponding retryable write command has already been committed
The total number of write statements associated with the retried commands in transactions.retriedCommandsCount.
The number of writes to the config.transactions collection, triggered when a new retryable write statement is committed.