Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

View Metrics

On this page

Overview

Ops Manager provides charts for analyzing the statistics collected by the Monitoring Agent for your deployment’s mongod and mongos processes. The agent collects metrics using several MongoDB diagnostic commands, including serverStatus and dbStats.

Ops Manager also provides charts for analyzing hardware statistics collected by the Automation Agents. Hardware metrics are available only for automated deployments. The Automation Agents collect the metrics for the servers that run the managed MongoDB processes.

Data Granularity

You can view data at different granularities and time periods. Charts default to the last granularity used. Ops Manager gathers metric data at a 10-second granularity.

Data Retention

Ops Manager preserves metric data according to Ops Manager’s Monitoring Data Retention settings. Ops Manager administrators can modify the settings by selecting Admin, then General, then Ops Manager Config, then the Miscellaneous tab, and then scrolling to Default Monitoring Data Retention.

View Metrics

To view metrics, click Deployment and then click the Metrics button for the sharded cluster, replica set, or individual MongoDB process.

To add or remove charts, click either the Display or Add Chart drop-down list, depending on which is available. To display a chart’s controls, hover the mouse pointer over the chart. To view metrics for a different level in the topology of a sharded cluster or replica set, use the breadcrumb.

For additional information on displayed metrics, see the following on this page:

Sharded Cluster Metrics

When you view metrics for a sharded cluster, you can choose to display either the shards, mongos instances, or config servers. For a shard you can use the buttons below the chart to select primaries, secondaries, or both. Ops Manager displays different processes as different lines.

To sum or average the data, click the Display Data drop-down list and select the desired option. To change charts, click the Display drop-down list.

Replica Set Metrics

When you view metrics for a replica set, you can limit the display to particular types of members using the P, S, and A options.

To add or remove charts, click the Add Chart drop-down list or click the buttons at the bottom of the page. To remove a chart, deselect it.

Status Tab

This tab displays process metrics the Monitoring Agent collects from the selected mongod or mongos process. The agent collects a subset of the output of the MongoDB serverStatus and explain commands.

Hardware Tab

Important

Munin users:

If you run munin-node on your MongoDB servers and install or upgrade to Automation Agent version 2.7.0 or higher on the servers, Ops Manager displays the hardware data collected by the Automation Agent, not by Munin. The historical hardware data collected by Munin is not saved.

If you run Munin but do not run the Automation Agent, Ops Manager displays the Munin charts.

The Automation Agent collects the following hardware metrics for your mongod and mongos processes:

Chart Data
System CPU The CPU usage of all processes (not just MongoDB processes) on the host server. For servers with more than 1 CPU core, this value can exceed 100%.
Normalized System CPU The CPU usage of all processes (not just MongoDB processes) on the host server, scaled to a range of 0-100% by dividing by the number of CPU cores.
Process CPU The CPU usage of the MongoDB process. For servers with more than 1 CPU core, this value can exceed 100%.
Normalized Process CPU The CPU usage of the MongoDB process, scaled to a range of 0-100% by dividing by the number of CPU cores.
Disk Space Free - <partition> The total bytes of free disk space on the disk partition used by MongoDB.
Util % - <partition> The percentage of time during which requests are being issued to and serviced by the partition. This includes requests from any process, not just MongoDB processes.
Disk IOPS - <partition> The throughput of I/O operations per second for the disk partition used for MongoDB.
Disk Space Percent Free - <partition> The percent of free disk space on the partition used by MongoDB.
Disk Latency - <partition> The latency in milliseconds of the disk partition used by MongoDB.
Disk Space Used - <partition> The total bytes of used disk space on the partition that runs MongoDB.

DB Stats Tab

This tab displays database metrics the Monitoring Agent collects through the MongoDB dbStats command. The agent collects a subset of dbStats output. See dbStats in the MongoDB manual.

The agent retrieves database metrics every 20 minutes by default but adjusts frequency when necessary to reduce the impact on database performance. You can disable the collection of database statistics by clicking Settings, then Group Settings, and then setting Collect Database Specific Statistics to No.

To select which database to display, click the Select Database drop-down list.

Chart Controls

When viewing charts, you can do the following:

Task Action
View a chart’s description. Click the i icon next to the chart name. (Not available for cluster-level chart)
Expand a chart. Click the two-way arrow at the top right of the chart.
Zoom in on a period of time.

Click and drag the mouse pointer over a portion of the chart. To reset, double-click the chart.

Note

When you zoom, the time selections above the charts automatically update to reflect the new period displayed.

View point-in-time statistics. Hover the mouse pointer over a point on the chart.
Move a chart. Click and hold the grabber in the upper left corner of the chart, and drag the chart to the new position.
Export the charts. Click the Export drop-down list and select the format.
Link to a chart. Click the curved arrow on the chart and select Chart Permalink.
Email the chart. Click the curved arrow on the chart and select Email Chart.