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.

Profile Databases

On Prem MMS Monitoring can collect data from MongoDB’s profiler to provide statistics about performance and database operations.

Before enabling profiling, be aware of these issues:

  • Profile data can include sensitive information, including the content of database queries. Ensure that exposing this data to On Prem MMS Monitoring is consistent with your information security practices.
  • The profiler can consume resources which may adversely affect MongoDB performance. Consider the implications before enabling profiling.

To allow On Prem MMS Monitoring to collect profile data for a specific host:

1

Select the Deployment tab and then the Deployment page.

2

On the line for any host, click the gear icon and select Edit Host.

3

On the Edit Host interface, click the Profiling tab.

4

Turn on profiling.

Click the button to toggle between Off and On. When the button is On, MMS receives database profile statistics.

5

Start database profiling by using the mongo shell to modify the setProfilingLevel command.

See the database profiler documentation for instructions for using the profiler.

Note

The Monitoring Agent attempts to minimize its effect on the monitored systems. If resource intensive operations, like polling profile data, begins to impact the performance of the database, On Prem MMS Monitoring will throttle the frequency that it collects data. See How does MMS gather database statistics? for more information about the agent’s throttling process.

When enabled, On Prem MMS Monitoring samples profiling data from monitored instances: the agent only sends the most recent 20 entries from last minute.

With profiling enabled, all configuration changes made in MMS can take up to 2 minutes to propagate to the agent and another minute before profiling data appears in the MMS interface.

When profiling is on, the Profile Data tab on a host’s statistics page displays the profile levels used to collect data. For more information on profile levels, see /tutorial/manage-the-database-profiler.

If you have profiling data and wish to delete it from MMS, use the button on the bottom of the Profile Data tab for deleting profile data. When you click on this button, MMS raises a confirmation dialogue. When you confirm, On Prem MMS Monitoring will begin removing stored profile data from this server’s record.

Note

If On Prem MMS Monitoring is storing a large amount of profile data for your instance, the removal process will not be instantaneous.