Free Monitoring

New in version 4.0.

Starting in version 4.0, MongoDB (Community Edition) offers free Cloudmonitoring for standalones and replica sets.

Monitored Data

Free monitoring provides information about your deployment, including:

  • Operation Execution Times
  • Memory Usage
  • CPU Usage
  • Operation Counts

The data expires 24 hours after being uploaded. For more information onthe data upload and expiration, seeMonitored Data and Expiration.

Enable/Disable Free Monitoring

By default, you can enable/disable free monitoring during runtime usingdb.enableFreeMonitoring() and db.disableFreeMonitoring().

You can also enable or disable free monitoring duringmongod startup using either:

Once you enable free monitoring, it remains enabled until you disableit.

To view the state of your free monitoring,

Access Control

When running with access control, the user must have the followingprivileges to enable free monitoring and get status:

  1. { resource: { cluster : true }, actions: [ "setFreeMonitoring", "checkFreeMonitoringStatus" ] }

The built-in role clusterMonitor role provides thisprivilege.

Monitored Data and Expiration

When enabled, the monitored data is uploaded periodically. Themonitored data expires after 24 hours. That is, you can only accessmonitored data that has been uploaded within the past 24 hours.

If you disable free monitoring and later re-enable free monitoring, youcan access your previous metrics that have not expired within the past24 hours.

Monitoring URL

When you enable free monitoring, you are provided with a uniqueURL where you can access your monitored data.

Important

Anyone with whom you share this unique URL can access your monitoreddata.