- Reference >
mongo
Shell Methods >- Free Monitoring Methods >
- db.getFreeMonitoringStatus
db.getFreeMonitoringStatus¶
On this page
-
db.
getFreeMonitoringStatus
()¶ Returns information on free monitoring status.
The
mongo
shell helperdb.getFreeMonitoringStatus()
is a wrapper around thegetFreeMonitoringStatus
command.See also
Access Control¶
When running with access control, the user must have the
checkFreeMonitoringStatus
privilege actions on the
cluster. That is, a user must have a
role that grants the following privilege:
The built-in role clusterMonitor
role provides this
privilege.
Output¶
The method returns a document with the following fields:
Field | Description |
---|---|
state |
The free monitoring enablement state. Values are either:
"enabled" or "disabled" . |
message |
Any informational message related to your state. |
url |
The unique URL at which your monitoring data can be accessed. Note Anyone with whom you share this unique URL can access your monitored data. Even when disabled, your unique URL is returned so that if you re-enable monitoring, you can access your previous metrics. |
userReminder |
Any informational message related to your state. |
ok |
Status of the
|
Example¶
You can use db.getFreeMonitoringStatus()
to check your
free monitoring status
The method returns information on your free monitoring status.
See also
freeMonitoring
field returned from db.serverStatus()