Enterprise Grafana Cloud
Last reviewed: June 2, 2026

Install and upgrade the MongoDB data source plugin

This document covers how to install, upgrade, and verify the MongoDB data source plugin across different Grafana deployment environments. After the plugin is installed, refer to Configure the MongoDB data source to set up a connection.

Before you begin

Verify the following requirements before installing:

RequirementDetails
LicenseGrafana Cloud Pro or Advanced plan, or a self-managed Grafana Enterprise license that includes grafana-mongodb-datasource. Free and Starter plans don’t include Enterprise plugins.
Grafana version11.6.7 or later.
Network accessGrafana Cloud instances require internet access to download the plugin from the catalog. Self-managed installs need access to grafana.com or a local plugin ZIP.
MongoDB accessA MongoDB 5.0+ instance with at least one user and port 27017 (or your configured port) accessible from the Grafana server.

Install the plugin

Choose the installation method that matches your Grafana deployment.

Grafana Cloud

Enterprise plugins must be activated for your organization before they appear as installable in the plugin catalog.

  1. Go to your Grafana Cloud organization settings and sign in with your Grafana Cloud account.
  2. Select your organization.
  3. Navigate to the Plugins tab and verify that the MongoDB plugin is activated. If it isn’t listed, confirm your Cloud plan includes Enterprise plugins.
  4. In your Grafana Cloud instance, navigate to Administration > Plugins and data > Plugins.
  5. Search for MongoDB and click Install.

Note

If the Install button doesn’t appear, verify that the plugin is activated for your organization in your Grafana Cloud organization settings and that your Cloud plan is Pro or Advanced.

Self-managed Grafana (CLI)

Bash
grafana cli plugins install grafana-mongodb-datasource

Restart Grafana after installation:

Bash
sudo systemctl restart grafana-server

Docker

Set the GF_INSTALL_PLUGINS environment variable:

YAML
environment:
  - GF_INSTALL_PLUGINS=grafana-mongodb-datasource
  - GF_ENTERPRISE_LICENSE_TEXT=<YOUR_LICENSE>

Kubernetes (Helm chart)

Add the plugin to your Helm values:

YAML
plugins:
  - grafana-mongodb-datasource

envFromSecret: grafana-license-secret

Or use the GF_INSTALL_PLUGINS environment variable in your deployment spec:

YAML
env:
  - name: GF_INSTALL_PLUGINS
    value: "grafana-mongodb-datasource"
  - name: GF_ENTERPRISE_LICENSE_TEXT
    valueFrom:
      secretKeyRef:
        name: grafana-license
        key: license.jwt

Kubernetes (init container)

If you don’t control the Helm chart (for example, on a shared platform cluster), use an init container to download the plugin before Grafana starts:

YAML
initContainers:
  - name: install-plugins
    image: curlimages/curl:latest
    command:
      - sh
      - -c
      - |
        curl -sL https://grafana.com/api/plugins/grafana-mongodb-datasource/versions/latest/download \
          -o /plugins/grafana-mongodb-datasource.zip && \
        unzip /plugins/grafana-mongodb-datasource.zip -d /plugins/
    volumeMounts:
      - name: plugins
        mountPath: /plugins

Mount the same volume at /var/lib/grafana/plugins in the Grafana container.

Air-gapped (offline) installation

For environments without internet access:

  1. Download the plugin archive from your Grafana account portal on a machine with internet access.

  2. Transfer the ZIP to the Grafana server.

  3. Extract to the plugins directory:

    Bash
    unzip grafana-mongodb-datasource-<version>.linux_amd64.zip -d /var/lib/grafana/plugins/
  4. Set ownership:

    Bash
    chown -R grafana:grafana /var/lib/grafana/plugins/grafana-mongodb-datasource
  5. Restart Grafana.

If Grafana reports an “unsigned plugin” error, add the following to grafana.ini:

ini
[plugins]
allow_loading_unsigned_plugins = grafana-mongodb-datasource

Caution

Only allow unsigned plugins if you trust the source of the ZIP file. Official downloads from grafana.com are signed.

Verify the installation

After installing, confirm the plugin is loaded:

  1. Navigate to Administration > Plugins and data > Plugins.
  2. Search for MongoDB and verify the plugin appears with a status of Installed.
  3. Navigate to Connections > Add new connection and search for MongoDB to confirm it’s available as a data source.
  4. If the plugin doesn’t appear, check the Grafana server logs for errors and refer to Troubleshoot installation issues.

Upgrade the plugin

Upgrade steps depend on your Grafana deployment environment.

Grafana Cloud

Plugins are automatically updated on Grafana Cloud. No manual action is required. If you experience issues after an automatic update, contact Grafana Support.

Self-managed Grafana

  1. Update the plugin:

    Bash
    grafana cli plugins update grafana-mongodb-datasource
  2. Restart Grafana.

  3. Verify each data source connection with Save & test.

To install a specific version:

Bash
grafana cli plugins install grafana-mongodb-datasource <version>

For Docker or Kubernetes, append the version to the plugin name:

YAML
environment:
  - GF_INSTALL_PLUGINS=grafana-mongodb-datasource <version>

Roll back to a previous version

If an upgrade causes issues on a self-managed instance, pin a specific plugin version:

Bash
grafana cli plugins install grafana-mongodb-datasource 1.26.0

Restart Grafana after the rollback.

Note

Rollback is not available on Grafana Cloud. If you experience issues after an automatic update, contact Grafana Support.

Uninstall the plugin

Warning

Do not uninstall Enterprise plugins as a troubleshooting step. Reinstalling Enterprise plugins on Grafana Cloud requires contacting Grafana Support.

To remove the MongoDB plugin from a self-managed Grafana instance:

Bash
grafana cli plugins remove grafana-mongodb-datasource

Restart Grafana after uninstalling. Existing data source configurations are preserved in the Grafana database but become non-functional until the plugin is reinstalled.

For Docker or Kubernetes, remove grafana-mongodb-datasource from the GF_INSTALL_PLUGINS variable and redeploy.

Troubleshoot installation issues

The following sections address common installation problems. For additional troubleshooting guidance, refer to Licensing and installation issues.

Plugin doesn’t appear in the catalog (Grafana Cloud)

Cause: The Enterprise plugin isn’t activated for your organization.

Solution:

  1. Go to your Grafana Cloud organization settings.
  2. Select your organization and navigate to the Plugins tab.
  3. Verify that the MongoDB plugin is listed and activated.
  4. Confirm your Cloud plan is Pro or Advanced. Free and Starter plans don’t include Enterprise plugins.

“Plugin not found” or install button missing

Cause: Your Grafana instance doesn’t have access to the Enterprise plugin repository.

Solution:

“Plugin health check failed” after installation

If Save & test returns “Plugin health check failed” immediately after installing the plugin, the most common cause is a missing Enterprise Plugins entitlement.

CauseSolution
Grafana Cloud Free planThe MongoDB plugin is not available on the Free tier. Upgrade to a Pro (with Enterprise Plugins add-on) or Advanced plan.
Pro plan without add-onUpgrading from Free to Pro does not automatically include Enterprise plugins. Purchase the Enterprise Plugins add-on separately.
Self-managed without Enterprise licenseActivate a valid Grafana Enterprise license.
License not provisioned after contract changeContact Grafana Support to verify your entitlements.

License key errors (self-managed)

Cause: The GF_ENTERPRISE_LICENSE_TEXT environment variable contains an invalid or malformed license key.

Solution:

  1. Verify the license key doesn’t contain extra whitespace, line breaks, or truncated characters.
  2. Confirm the key is for the correct Grafana instance URL.
  3. Check that the license hasn’t expired in your Grafana Cloud organization settings.
  4. For license activation help, refer to Activate an Enterprise license.

“Unsigned plugin” error (air-gapped installs)

Cause: The plugin was installed from a ZIP file and Grafana can’t verify its signature.

Solution:

  1. Ensure you downloaded the ZIP from the official Grafana account portal. Official downloads are signed.
  2. If the error persists, add allow_loading_unsigned_plugins = grafana-mongodb-datasource to grafana.ini under [plugins].
  3. Restart Grafana.