You can review the following metrics to monitor your deployments. All hardware metrics include metrics or individual charts for maximum values.
Note
Ops Manager collects hardware metrics only if automation manages the process. A monitoring agent can only collect database metrics.
Important
The metrics available depend on your user role and deployment type.
Database Metrics
The following metrics reflect the performance and behavior of the MongoDB process.
Metric | Description |
|---|---|
Asserts | Displays the following information:
Monitor asserts to track how many errors occur while trying to read or write data. Check the server logs to identify the source of any errors. |
Cache Activity | Displays the following information:
Monitor cache activity to track the read and write throughput of the WiredTiger storage engine cache. |
Cache Ratio | Displays the following information:
Monitor cache ratio to determine whether the cache size is sufficient for the current workload. |
Cache Usage | Displays the following information:
Monitor cache usage to determine whether the WiredTiger cache is approaching capacity. |
Catalog | Displays the following information:
Monitor catalog counts to prevent an excessive number of databases, collections, views, or indexes from causing startup failures. |
Connection Rate | Displays the following information:
Monitor connection rate to track how quickly connections are being created or removed. |
Connections | Displays the total number of active connections to the deployment. Each connection uses its own thread stack, so a large number of connections can result in significant RAM usage. Monitor connections to determine whether the current connection limits are sufficient. |
Cursors | Displays the following information:
Monitor cursors to close unnecessary cursors and reduce the timeout configuration in the application. |
DB Storage | Displays the following information:
Monitor storage space to determine whether to manually increase the disk size. |
Document Metrics | Displays the following information:
Monitor document metrics to measure the work MongoDB completes. |
Memory | Displays the total consumption of memory in megabytes at a particular point in time:
Monitor memory to determine whether your currrent deployment meets your memory needs. |
Network | Displays the following information:
Monitor network metrics to track network performance. |
OpCounters | Displays the following information:
Monitor MongoDB operations to validate performance issues related to high workloads. Confirm the type of operations responsible for the load. |
Operation Execution Times | Displays the following information:
Monitor operation execution times to identify slow operations and potential performance bottlenecks. |
Operation Throttling | Displays the following information:
Monitor operation throttling to identify queries that are being rejected or killed. |
Page Faults | Displays the average rate of page faults on this process per second over the selected sample period. In non-Windows environments this applies to hard page faults only. Monitor page faults to determine whether to increase your memory. |
Queues | Displays the following information:
Monitor queues to identify potential issues and bottlenecks. |
Query Executor | Displays the following information:
Monitor query executor to identify inefficient queries that scan more indexes or documents than necessary. |
Query Targeting | Displays the efficiency of read operations run on MongoDB:
Monitor query targeting to determine read efficiency and optimize queries and indexes. |
Scan and Order | Displays the average rate per second over the selected sample period of queries that return sorted results that cannot perform the sort operation using an index. Monitor this metric to identify whether your queries need indexes. |
Shard Data Size | Displays the amount of storage space in bytes that your stored data uses on each shard. You can access this chart only in the sharded namespace view for sharded clusters with MongoDB 6.0+. Monitor this metric to verify whether you have balanced shards. |
Shard Document Count | Displays the number of documents on each shard. You can access this chart only in the sharded namespace view for sharded clusters with MongoDB 6.0+. Monitor this metric to verify whether you have balanced shards. |
Tickets Available | Displays the following information:
Monitor tickets available to identify storage engine concurrency constraints that may affect performance. |
DB Stats
The following metrics reflect statistics for individual databases in the deployment.
Metric | Description |
|---|---|
Avg Object Size | Displays the average object size across all collections in the database. Monitor object size to track the size of your objects and better understand your database space. |
Collections | Displays the number of collections in the database. Monitor collections to determine restart times, continuous backup performance, and stability. |
Data Size | Displays the actual size of the data files in the database. Monitor data size to ensure that database is not using too much memory or CPU. |
Index Size | Displays the total size of all indexes in the database. This metric includes the overhead incurred by indexes on top of the actual document data on which the indexes are based. Monitor the index size to manage your indexes. To learn more, see Indexing Strategies. |
Indexes | Displays the total number of indexes in the database. Monitor indexes to manage them. To learn more, see Indexing Strategies. |
Num Extents | Displays the total number of contiguously allocated chunks of data file space for the database. Monitor this metric to better understand your database space. |
Objects | Displays the number of objects in the database. Monitor this metric to better understand your database space. |
Storage Size | Displays the storage size of the database. Monitor storage size to determine whether to manually increase the disk size. |
Views | Displays the number of views in the database. Monitor views to better understand your database space. |
Hardware Metrics
The following metrics reflect the performance and usage of the host machines supporting the deployment.
Metric | Description |
|---|---|
Disk IOPS | Displays the following information:
Monitor whether disk IOPS approaches the maximum provisioned IOPS. Determine whether the deployment can handle future workloads. |
Disk Latency | Displays the following information:
Monitor disk latency to track the efficiency of reading from and writing to disk. |
Disk Queue Depth | Displays the average length of the queue of requests issued to the disk partition that stores MongoDB data. Monitor disk queue depth to identify potential issues and bottlenecks. |
Disk Space Free | Displays the following information:
Monitor free disk space to determine whether to use disk auto-scaling or manually increase the disk size. |
Disk Space Percent Free | Displays the following information:
Monitor the percentage of free disk space to determine whether to use disk auto-scaling or manually increase the disk size. |
Disk Space Used | Displays the following information:
Monitor the used disk space to determine whether to manually increase the disk size. |
Max Disk IOPS | Displays the following maximum disk IOPS values over the time period specified by the metric granularity:
Monitor whether disk IOPS approaches the maximum provisioned IOPS. Determine whether the deployment can handle future workloads. |
Max Disk Queue Depth | Displays the maximum disk queue depth values over the time period specified by the metric granularity. Disk queue depth is the average length of the queue of requests issued to the disk partition that stores MongoDB data. Monitor disk queue depth to identify potential issues and bottlenecks. |
Max Normalized System CPU | Displays the maximum CPU usage values of all processes on the node, scaled to a range of 0-100% by dividing by the number of CPU cores:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
Max Process CPU | Displays the following maximum process CPU values over the time period specified by the metric granularity:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
Max System CPU | Displays the maximum CPU usage values of all processes on the node:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
Max System Memory | Displays the maximum system memory values in bytes:
Monitor memory to determine whether your currrent deployment meets your memory needs. |
Normalized Process CPU | Displays the following information:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
Normalized System CPU | Displays the CPU usage of all processes on the node, scaled to a range of 0-100% by dividing by the number of CPU cores:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
Process CPU | Displays the following information:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
Swap IO (Internal) | Displays the rate at which the operating system swaps memory pages between RAM and disk:
A high or sustained rate of swap IO can correlate with increased latency and memory pressure on the host. Use this metric to understand how frequently the host performs swap input and output operations. |
Swap Usage | Displays the following information about swap space on the host:
Sustained high swap usage can indicate memory pressure on the host. Monitor swap usage to identify when the operating system starts moving memory pages to disk. |
System CPU | Displays the CPU usage of all processes on the node:
Monitor CPU usage to determine whether data is retrieved from disk instead of memory. |
System Memory | Displays the following information:
Monitor memory to determine whether your currrent deployment meets your memory needs. |
System Network | Displays the following information:
Monitor network metrics to track network performance. |
Search Node Metrics
The following metrics are available for mongot (Search and Vector Search) nodes deployed through the MongoDB Enterprise Kubernetes Operator. Ops Manager displays these metrics in the mongot Details view. To learn more, see View Search Node Performance Metrics.
Metric | Description |
|---|---|
CPU Usage | Displays normalized CPU usage percentage for the |
JVM Memory | Displays JVM heap memory used and maximum heap capacity for the |
JVM GC Pause | Displays the maximum JVM garbage collection pause duration, in seconds. Frequent or long pauses can affect search query latency. |
Disk Space Used | Displays the percentage of disk space used by the |
Index Size | Displays the combined size of all search indexes on the |
Index Documents | Displays the total number of documents across all search indexes on the |
Index Segments | Displays the total number of Lucene segments across all search indexes on the |
Search Query Throughput | Displays the total rate and failed rate of Search queries, in operations per second. |
Search Query Latency | Displays the average and maximum latency of Search commands, in milliseconds. |
Vector Search Throughput | Displays the total rate and failed rate of Vector Search queries, in operations per second. |
Vector Search Latency | Displays the average and maximum latency of Vector Search commands, in milliseconds. |
Index Manager Health | Displays the number of index managers in each of the following states: |