The following tutorial guides you through launching Charts on MongoDB Cloud. You can access Charts with any Organization Role or any Project Role that can read data from Atlas.
先决条件
Atlas Charts is accessible through MongoDB Atlas. You will need a MongoDB Atlas user account to complete this tutorial. To learn more about creating an Atlas user, see Get Started with Atlas documentation.
您还需要 Atlas 集群来使用 Charts 可视化数据。 本页上的步骤将指导您创建 Atlas 集群。
注意
Atlas Charts 应用程序的每个实例都与一个 Atlas项目绑定。 您只能可视化同一项目中 Atlas 集群的数据。
必需的访问权限
如需读取 Atlas 项目中集群的数据,本教程要求:
您可以访问包含 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.
Your Atlas user has any Project Role except the
Project Read Onlyrole.注册 Atlas 帐户时,Atlas 会授予您初始项目中的
Project Owner角色。 要了解更多信息,请参阅 Atlas 文档中的Atlas Access 。
步骤
登录 MongoDB Atlas。
To access the Atlas Charts application, you must be logged into Atlas.
选择所需的 Atlas 项目,或创建新项目。
If you have an Atlas project with clusters that contain data you want to visualize, select the project from the Projects menu in the navigation bar.
If you do not have a suitable existing Atlas project, see Create a Project in the Atlas documentation for instructions on creating a new project.
(可选)邀请其他人加入您的Atlas项目和共享Charts实例。
All Atlas project users with Project Roles other than Project Read Only have access to the Charts instance associated with that project. To add additional members to your Atlas project, see Manage Project Users and Teams in the Atlas documentation.
(可选) 创建Atlas 集群。
Atlas Charts 应用程序可以轻松地将集群中的collection连接为数据源。数据源引用特定的集合和图表视图,您可以在图表生成器中访问这些集合和图表视图,以可视化这些集合或图表视图中的数据。
注意
You can skip this step if you already have an Atlas cluster in the current project.
创建 Atlas 集群:
在侧边栏中,单击 Database 标题下的 Clusters。
会显示集群页面。
单击 Build a New Cluster(连接)。
在Create New Cluster页面中,选择您的首选云提供商和地区、集群层以及其他设置。构建集群时,Atlas 会在页面底部显示相关的集群成本。
注意
Atlas provides a free
M0cluster replica set as well as paidM10+clusters. Free cluster deployments have restrictions as compared to paidM10+deployments, but will work for the purposes of this setup and all Charts tutorials offered in this documentation. For complete documentation on these restrictions, see Atlas M0 (Free Cluster), M2, and M5 Limitations.默认集群名称是Cluster0 。 如果要更改集群名称,请立即执行此操作,因为集群名称一旦配置便无法更改。
单击Create Cluster按钮以部署集群。
您的新集群会自动连接到 Charts。
注意
有关创建 Atlas 集群的完整说明,以及所有可用配置选项的详细信息,请参阅 Atlas 文档中的“创建集群”。
查看 Charts。
注意
When you first launch Atlas Charts in a project, Charts automatically creates a new user named Charts User with the Project Charts Admin role in your Atlas project to access your cluster data. The names of these users are in the format: charts+<PROJECT-ID>@mongodb.com. If you see a different chart user that appears suspicious and has a different format, contact MongoDB Support.
如果您以前使用过 Charts,您将看到现有的仪表盘,或者系统会提示您添加新的仪表盘。
如果您是Charts新用户, Atlas Charts会引导您学习Charts入门教程。
Atlas Charts Atlas Charts指南提供了两种开始使用Charts的可能路径:
此外, Atlas Charts会自动创建一个名为<YOUR-NAME>'s Dashboard的新的空仪表盘,您是其中的Owner 。 该仪表盘默认为私有仪表盘,但您可以像修改任何其他仪表盘一样修改仪表盘权限。
要导航回 Atlas Clusters视图,请单击 Atlas Charts 应用程序顶部的Data Services 。
前进
现在您已经有了数据源,可以开始可视化数据了。 接下来的步骤是创建仪表盘并构建Atlas Charts以填充仪表盘。
有关 Atlas Charts 及其功能的完整演练,包括用于可视化的可下载数据集,请参阅以下教程。
删除 Atlas Charts 实例
重要
删除 Atlas Charts 实例会删除与该实例关联的所有数据,包括仪表盘、数据源和元数据。 Atlas Charts 实例一旦删除,这些数据就无法恢复。
If you are an Atlas Project Owner, you can deactivate and delete a Atlas Charts instance linked to your Atlas project from your Atlas Project Settings.
如果删除链接的 Atlas Charts 实例,您可以随时为项目创建新的 Atlas Charts 实例。 新创建的实例不会保留以前删除的实例中的任何数据。