Atlas CLI's telemetry collects anonymous, aggregate usage data to identify improvements with the greatest impact. The Atlas CLI enables telemetry by default. Telemetry settings for the Atlas CLI also apply to telemetry for mongosh if you installed the Atlas CLI and mongosh together in the same package.
以下信息也适用于本地 MongoDB 部署。 要了解更多信息,请参阅从 Atlas CLI 托管本地和云部署。
了解 Atlas CLI 追踪的内容
Atlas CLI遥测跟踪包括但不限于以下信息:
数据 | 示例值 |
|---|---|
Atlas CLI 版本号 |
|
安装源 |
|
操作系统 (OS) 和操作系统版本 |
|
身份验证方法。 Atlas CLI 追踪不追踪API密钥和登录凭证的值。 |
|
您运行的命令的详细信息。 Atlas CLI 遥测仅跟踪使用预设允许值(例如集群区域)或交互式命令响应(例如默认项目 ID)的参数。 |
|
性能信息,例如 Atlas CLI 执行命令所需的时间。 |
|
您遇到的错误,包括运行的命令和使用的参数。 |
|
了解 Atlas CLI 不追踪的内容
Atlas CLI 遥测不跟踪:
数据 | 例子 |
|---|---|
自由文本字段,例如自定义名称或数据库用户名。 |
|
API键值或 Atlas 登录凭证。 |
|
为 Atlas CLI 禁用遥测
要禁用 Atlas CLI 的遥测,请在终端中运行以下命令:
atlas config set telemetry_enabled false
您还可以通过以下方式禁用遥测:
导航到配置文件并输入
telemetry_enabled = false。将MONGODB_ATLAS_TELEMETRY_ENABLE 环境变量设置为
false。
为 Atlas CLI 启用遥测
Atlas CLI 默认启用遥测功能。 如果当前已禁用遥测,您可以通过在终端中运行以下命令来启用遥测:
atlas config set telemetry_enabled true
您还可以通过以下方式启用遥测:
导航到配置文件并删除
telemetry_enabled = false。将MONGODB_ATLAS_TELEMETRY_ENABLE 环境变量设置为
true。