Docs Menu

Docs HomeMongoDB Charts

Connect or Disconnect Data Sources and Deployments

On this page

  • Connect a Deployment to Charts
  • Connect a Data Source to Charts
  • Disconnect a Deployment from Charts
  • Disconnect a Data Source from MongoDB Charts

On the Data Sources page, an Atlas Project Owner can:

To learn more about data sources and deployments, see Data Sources.

Charts connects to all deployments and data sources by default.

You can connect a deployment to Charts to access the data for the collections within the deployment in Charts.

To connect a deployment to Charts:

1

The Data Sources page displays.

2

Deployments in MongoDB Charts reference Atlas deployments that contain valid Charts data sources, including:

After you select a deployment, the following information displays:

Field
Description
Deployment Name
Human-readable label that identifies the deployment in Atlas.
Deployment Connection Status
Label that indicates whether you connected the deployment to MongoDB Charts.
Type
Label that identifies the deployment as a replica set, serverless instance, or federated database instance.
Status
Label that indicates the current operating condition of the deployment.
Version
Label that indicates the MongoDB version on which the deployment runs. Charts doesn't display Version for federated database instances.
Region
Label that indicates the cloud provider and region where MongoDB provisions the deployment. Charts doesn't display Region for serverless instances.
Tier
Label that indicates the Atlas cluster tier for the deployment. Charts doesn't display Tier for federated database instances and serverless instances.
3

If the deployment connection status is Connected, the deployment is already connected to Charts. The Data Access section displays all of the collections within the selected Atlas deployment.

If the deployment connection status is Disconnected:

  1. Click the connect icon next to the deployment connection status.

  2. Click Reconnect on the modal that appears.

The deployment connects and the Data Access section displays all of the databases for the selected Atlas deployment.

Connect a data source to Charts to use its data in your charts.

When you connect a data source, Charts grants the default permissions to Charts users. To customize the permissions for a data source, see Modify Data Source Permissions.

To connect a data source to Charts:

1

To learn more, see Connect a Deployment to Charts.

2

Select the database that contains the data source you want to connect. The database's data sources display, including charts views.

Charts displays the following information about the data source:

Column
Description
Data Source
Human-readable label that identifies the data source and its chart views.
External Users

Label that indicates whether:

  • You enabled external user access.

  • The external user connection method is Authenticated or Unauthenticated.

Status
Label that indicates whether you connected the data source to MongoDB Charts.
3

The data source's details page displays the following information:

Field
Description
Data Source Name
Human-readable label that identifies the data source in Atlas.
Data Source Connection Status
Label that indicates whether you connected the data source to MongoDB Charts.

To learn more about the other information that displays on the data source's details page, see Manage Data Sources.

4

If the data source connection status is Connected, you already connected this data source to MongoDB Charts. The Data Access section displays.

If the data source connection status is Disconnected:

  1. Click the connect icon next to the data source connection status.

  2. Click Reconnect on the modal that displays.

The data source connects and the Data Access section displays.

To learn more about the other information that displays in the data source's Data Access section, see Manage Data Sources.

Disconnect a deployment to disconnect all data sources within the deployment from Charts.

If you disconnect a deployment, you can reconnect it later to resume rendering charts that use the deployment's data sources.

To disconnect a deployment:

1

The Data Sources page displays.

2

Deployments in MongoDB Charts reference Atlas deployments that contain valid Charts data sources, including:

After you select a deployment, the following information displays:

Field
Description
Deployment Name
Human-readable label that identifies the deployment in Atlas.
Deployment Connection Status
Label that indicates whether you connected the deployment to MongoDB Charts.
Type
Label that identifies the deployment as a replica set, serverless instance, or federated database instance.
Status
Label that indicates the current operating condition of the deployment.
Version
Label that indicates the MongoDB version on which the deployment runs. Charts doesn't display Version for federated database instances.
Region
Label that indicates the cloud provider and region where MongoDB provisions the deployment. Charts doesn't display Region for serverless instances.
Tier
Label that indicates the Atlas cluster tier for the deployment. Charts doesn't display Tier for federated database instances and serverless instances.
3

If the deployment connection status is Disconnected, the deployment is already disconnected from Charts.

If the deployment connection status is Connected:

  1. Click the disconnect icon next to the deployment connection status. The Disconnect Deployment modal appears.

  2. Click Check for connected charts to learn whether any charts use the deployment's collections as a data source.

  3. Click Disconnect.

The deployment disconnects from Charts.

Disconnect a data source from Charts to remove its data from your charts. If you disconnect a data source:

  • Any charts you built that use the data source no longer render and display an error.

  • Any charts that use $lookup to access data in the data source no longer render and display an error.

  • You can't use the data source to build new charts.

You can also disconnect a deployment.

If you disconnect a data source, you can reconnect it later to resume rendering charts that use its data.

Note

Charts automatically includes the Sample Data: Movies data source in all Charts tenants. The Sample Dashboard uses this data source to show the charts you can create. You can access the sample data source from all dashboards.

You can't:

  • Add, edit, or delete the data in the Sample Data: Movies data source.

  • Remove the sample data source.

  • Externally share or embed charts that use the sample data.

To disconnect a data source from Charts:

1

The Data Sources page displays.

2

Deployments in MongoDB Charts reference Atlas deployments that contain valid Charts data sources, including:

After you select a deployment, the following information displays:

Field
Description
Deployment Name
Human-readable label that identifies the deployment in Atlas.
Deployment Connection Status
Label that indicates whether you connected the deployment to MongoDB Charts.
Type
Label that identifies the deployment as a replica set, serverless instance, or federated database instance.
Status
Label that indicates the current operating condition of the deployment.
Version
Label that indicates the MongoDB version on which the deployment runs. Charts doesn't display Version for federated database instances.
Region
Label that indicates the cloud provider and region where MongoDB provisions the deployment. Charts doesn't display Region for serverless instances.
Tier
Label that indicates the Atlas cluster tier for the deployment. Charts doesn't display Tier for federated database instances and serverless instances.
3

Select the database that contains the data source you want to disconnect. The database's data sources display.

4

The data source's details page displays.

5

If the data source connection status is Disconnected, the data source is already disconnected from MongoDB Charts.

If the data source connection status is Connected:

  1. Click the disconnect icon next to the data source connection status. The Disconnect Data Source modal appears.

  2. Click Check for connected charts to learn whether any charts use the data source.

  3. Click Disconnect.

The data source disconnects from Charts.

←  Data SourcesManage Data Sources →
Share Feedback
© 2023 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.