Before You Begin
To enable MongoDB Database Monitoring with Atatus, complete the following steps:
Grant the Agent access to your MongoDB instances
- Standalone
- Replica Set
Connect to the MongoDB shell, authenticate to the standalone instance, and create a read-only Atatus user in the admin database with required permissions.1. Connect to your MongoDB shell and switch to the admin database:2. Create a read-only user for Atatus:Grant additional database monitoring permissions to the Atatus Agent user (Optional)For monitoring all databases, grant the readAnyDatabase role (Optional)
Configure Atatus Infra Agent
- Standalone
- Replica Set
To enable Atatus monitoring for a standalone MongoDB instance, update the configuration file by adding the following configuration to Note: Replace
/etc/atatus-infra-agent/conf.d/mongodb.d/mongodb.yml:<STRONG_PASSWORD> with the password you created for the Atatus user.- Standalone
- Replica Set
Restart the Atatus Infra Agent to apply the changes: