Configure Free Monitoring配置免费监控
New in version 1.4.1.
mongosh
prompts you to enable MongoDB's free monitoring service when you connect to MongoDB Community Edition cluster.当您连接到MongoDB CommunityEdition集群时,会提示您启用MongoDB的免费监控服务。
The monitoring service provides information on your deployment such as operation execution times and memory usage.监控服务提供有关部署的信息,如操作执行时间和内存使用情况。
To enable free monitoring, run the following command:要启用免费监控,请运行以下命令:
db.enableFreeMonitoring()
To permanently disable this reminder, run the following command:要永久禁用此提醒,请运行以下命令:
db.disableFreeMonitoring()
For more information on free monitoring see Free Monitoring.有关免费监控的更多信息,请参阅免费监控。