On the Data Sources page, an Atlas Project Owner can:
要托管数据源设置,请参阅托管数据源。
将部署连接到 Charts
注意
Charts 默认会连接到项目中的所有部署和数据源。
您可以将部署连接到 Charts,以访问 Charts 中部署内的collection的数据。
要将部署连接到 Charts:
在 Deployment 下拉列表中,选择包含数据源的部署。
MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:
All clusters in your Atlas project for which you have the
Project Data Access Read Onlyrole or higher.项目中的所有联合数据库实例,包括 Online Archives。
选择部署后,将显示以下信息:
字段 | 说明 |
|---|---|
Deployment Name | 标识 Atlas 中的部署的可读标签。 |
Deployment Connection Status | 指示您是否将部署连接到 Atlas Charts 的标签。 |
Type | 将部署标识为副本集或联合数据库实例的标签。 |
Status | 指示部署当前操作状况的标签。 |
Version | 指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。 |
Region | 指示 MongoDB 提供部署的云提供商和区域的标签。 |
Tier | 指示部署的 Atlas 集群层的标签。 |
断开部署与 Charts 的连接
断开部署连接以断开部署中所有数据源与 Charts 的连接。
If you disconnect a deployment, you can reconnect it later to resume rendering charts that use the deployment's data sources.
要断开部署,请执行以下操作:
在 Deployment 下拉列表中,选择包含数据源的部署。
MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:
All clusters in your Atlas project for which you have the
Project Data Access Read Onlyrole or higher.项目中的所有联合数据库实例,包括 Online Archives。
选择部署后,将显示以下信息:
字段 | 说明 |
|---|---|
Deployment Name | 标识 Atlas 中的部署的可读标签。 |
Deployment Connection Status | 指示您是否将部署连接到 Atlas Charts 的标签。 |
Type | 将部署标识为副本集或联合数据库实例的标签。 |
Status | 指示部署当前操作状况的标签。 |
Version | 指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。 |
Region | 指示 MongoDB 提供部署的云提供商和区域的标签。 |
Tier | 指示部署的 Atlas 集群层的标签。 |
访问部署设置
要在 Charts 中托管部署,请执行以下操作:
在 Deployment 下拉列表中,选择包含数据源的部署。
MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:
All clusters in your Atlas project for which you have the
Project Data Access Read Onlyrole or higher.项目中的所有联合数据库实例,包括 Online Archives。
选择部署后,将显示以下信息:
字段 | 说明 |
|---|---|
Deployment Name | 标识 Atlas 中的部署的可读标签。 |
Deployment Connection Status | 指示您是否将部署连接到 Atlas Charts 的标签。 |
Type | 将部署标识为副本集或联合数据库实例的标签。 |
Status | 指示部署当前操作状况的标签。 |
Version | 指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。 |
Region | 指示 MongoDB 提供部署的云提供商和区域的标签。 |
Tier | 指示部署的 Atlas 集群层的标签。 |
您可以托管以下部署设置。
为部署启用组织范围共享
组织范围的共享可授予组织内的用户(包括非项目成员的用户) 查看部署数据的权限,这些数据用于与组织共享的仪表盘。
Considerations
检查您是否可以访问包含 Atlas 项目的组织的 Atlas 用户界面。
If your organization's owners enable IP access list for the Atlas UI for an organization, this restricts access to the Atlas UI only to those users whose IP addresses are included in the organization's IP access list. If you don't have access to an organization, Atlas Charts displays a banner at the top of the page notifying you of the restriction. Contact your organization's owners so that they can include your IP address in the access list for the Atlas UI for this organization. This restriction doesn't apply to embedded charts applications and to the public dashboard.
如果您为部署启用组织范围的共享,它将应用于所有现有数据源以及您将来添加到该部署中的任何新数据源。
要为部署启用组织范围的共享,请执行以下操作:
在 Deployment 下拉列表中,选择包含数据源的部署。
MongoDB Charts 中的部署引用包含有效 Charts 数据源的 Atlas 部署,包括:
All clusters in your Atlas project for which you have the
Project Data Access Read Onlyrole or higher.项目中的所有联合数据库实例,包括 Online Archives。
选择部署后,将显示以下信息:
字段 | 说明 |
|---|---|
Deployment Name | 标识 Atlas 中的部署的可读标签。 |
Deployment Connection Status | 指示您是否将部署连接到 Atlas Charts 的标签。 |
Type | 将部署标识为副本集或联合数据库实例的标签。 |
Status | 指示部署当前操作状况的标签。 |
Version | 指示部署运行的 MongoDB 版本的标签。 Charts 不显示联合数据库实例的Version 。 |
Region | 指示 MongoDB 提供部署的云提供商和区域的标签。 |
Tier | 指示部署的 Atlas 集群层的标签。 |
部署读取偏好(read preference)
每个部署都有一个读取偏好(read preference),它决定了数据源从中读取数据的副本集节点。
By default, a newly-added Atlas cluster has a read preference of Secondary, which means that it reads from a secondary node within the Atlas cluster. You can change the read preference of a cluster using the Read preference dropdown.
You can't change the read preference of a federated database instance. Federated database instances have a read preference of Nearest by default, which means that they read from the replica set member whose network latency falls within the acceptable latency window. To learn more, see Read Preference Modes.
Read preference下拉列表包含以下读取偏好(read preference)选项的集群:
读取偏好 | 说明 |
|---|---|
主节点 | Reads from the primary node within the cluster. To learn more, see Read Preference Modes. |
从节点 | Reads from the secondary node within the cluster. To learn more, see Read Preference Modes. |
nearest | Reads from the replica set member whose network latency falls within the acceptable latency window. To learn more, see Read Preference Modes. |
分析节点 |