- Documentation
Volcengine Managed Service for Prometheus
Integration Guide
Prometheus ecosystem integration
Exporter integration
MongoDB exporter integration
Exporter integration
MongoDB exporter integration
MongoDB exporter integration
Volcengine Managed Service for Prometheus (VMP) monitors the operational status of MongoDB by using the exporter. This topic describes how to deploy mongodb-exporter in a cluster and monitor MongoDB.
Prerequisites
- A Volcano Engine root user has been created, and VKE has been activated.
- The VKE cluster has been integrated with VMP. For details, see VKE integration.
- Grafana has been deployed and integrated with the workspace.
Procedure
Step 1: Deploy mongodb-exporter
- Log in to the VKE console.
- In the left navigation pane, click Cluster. In the cluster list on the right side, find the target cluster.
- Click the name of the cluster to go to the cluster details page.
- Click Workload > Deployment in the left navigation pane. Click Create with Yaml to deploy mongodb-exporter.
tip
In this example, --collect-all is used to collect all metrics of MongoDB. You can also adjust the collection scope by specifying the appropriate parameters. For details, see mongodb-exporter. Step 2: Configure a collection rule
- In the left navigation pane of the cluster details page, click Workload > Resource Explorer.
- Click Create with Yaml to configure a collection rule by using PodMonitor.
- Select Custom from the Type list.
- Enter the YAML configuration in the Yaml field.
Validate results
- Execute the following command to configure Grafana port forwarding:
- Open a browser in your local environment (Linux/Mac), paste localhost:3000 into the address bar, and then press Enter to go to the Grafana login page. Log in to Grafana by using the default username admin and password admin.
-
- After you log in to Grafana, you can create a dashboard to view the metric information of MongoDB.
-
Last updated: 2026.10.10 10:16:50