You use MongoDB monitors to check the metrics of your MongoDB databases.
Requirements
There is no specific requirements to monitor MongoDB databases.
Monitor Settings
-
Port – The port used to communicate with the server.
-
UserName – The user account ReadyAPI uses to connect to the database.
-
Password – The password used to connect to the server.
-
Database – The database to monitor.
Frequently Used Metrics
MongoDB database metrics contain information about the database usage during the test run. ReadyAPI displays the following statistics in charts by default:
-
Database operations – query – The total number of queries to the database during the test run. Database queries usually involve reading data from the hard drive and can take some time. The queries that hit cached data are much faster.
-
Memory usage – virtual – The amount of virtual memory used by the MongoDB process.
Other Metrics
ReadyAPI retrieves statistics by using the MongoDB serverStatus
command. For a complete description of the available metrics, see the MongoDB documentation. Below is a sample list of available metrics:
Category | Description | Metrics |
---|---|---|
Asserts |
Provides information about the errors that occurred after the MongoDB process started. |
msg warning rollovers user regular |
Connections |
Provides information about the connection status. |
current available totalCreated |
Database operations |
Providers information about database operations. |
query insert update getmore delete command |
Extra info |
Provides additional information. |
note page_faults |
Global lock |
Provides information about the database’s lock state. |
currentQueue totalTime activeClients |
Latencies |
Provides information about operation latencies of the database. |
reads writes commands |
Locks |
Provides information about different locks. |
Database Metadata Collection Global |
Memory allocations |
Provides information about memory allocation. |
tcmalloc generic |
Memory usage |
Provides information about memory usage. |
virtual bits mapped mappedWithJournal resident supported |
Metrics |
Provides various metrics of the running MongoDB instance. |
cursor getLastError queryExecutor document record repl storage operation ttl commands |
Network |
Provides information about network usage. |
physicalBytesOut physicalBytesIn numRequests bytesIn bytesOut |
Replication operations |
Providers information about database replication operations. |
query insert update getmore delete command |
Storage engine |
Provides information about the storage engine. |
name readOnly persistent supportsCommittedReads |
Tiger |
Provides metrics related to the WiredTiger storage engine. |
cursor cache log session LSM thread-yield uri reconciliation block-manager async concurrentTransaction data-handle lock connection transaction thread-state |
See Also
Preparing Servers for Monitoring
Server Inspector
Load Testing Templates