ObserveNow
...
Integrations
Infrastructure
MongoDB
OpsVerse's Kubernetes agent can be used to collect metrics from MongoDB
Add the following YAML snippet to the agent's values.yaml and run the agent based on these instructions.
To configure an Atlas integration with Prometheus, follow the steps below:
- After the setup, a generated snippet is provided. Copy and store it securely and replace the username, password and the url in the below snippet.
Add the following YAML snippet to the agent's values.yaml and run the agent based on these instructions.
Add the following YAML snippet to the agent's values.yaml and run the agent based on these instructions.
Alternatively, you can install the Prometheus MongoDB exporter on a single machine.
Prerequisite(s):
Run this command to install the MongoDB exporter as a systemd unit:
- The agent will begin scraping the metrics automatically; the script will drop the scrape target into /etc/opsverse/targets/, so the agent will begin automatically scraping
- If you need to update MongoDB connection info, after you install, you may edit /etc/systemd/system/prom-mongodb-exporter.service with the appropriate CLI args you want, and then restart the service: