MongoDB data source
MongoDB is a distributed document database. The MongoDB data source plugin allows you to visualize data from MongoDB in Grafana.
The following documentation will help you get started working with MongoDB and Grafana:
The MongoDB Enterprise plugin is now available for users with a Grafana Cloud account or with a Grafana Enterprise license. For more information and to get started, create a free account or contact our team.
Requirements
The MongoDB data source has the following requirements:
- A MongoDB version 5.0+ instance with at least one user.
- Any free or paid Grafana Cloud plan or an activated on-prem Grafana Enterprise license. Contracted Cloud customers should refer to their agreement.
- Port 27017 enabled.
Known limitations
Following are current known limitations:
- Only
find
andaggregate
read commands are supported. - Refer to Diagnostics for a list of currently supported diagnostics commands.
- Regex flags
g
ands
are not supported.
Get the most out of the MongoDB data source
After installing and configuring MongoDB you can:
- Create a wide variety of visualizations.
- Add annotations.
- Configure and use templates and variables.
- Add transformations.
- Set up alerting.
- Set up proxying. Refer to Configure a data source connection proxy for configuration instructions.
Note
Proxying requires Grafana v10.x and the feature toggle
secureSocksDSProxy
set toEnabled
.
Always ensure that your plugin version is up-to-date so you have access to all current features. Navigate to Plugins and data > Plugins to check for updates.