Documentation forSolarWinds Observability

MongoDB system requirements

To monitor MongoDB with SolarWinds Observability your user must have the clusterMonitor and readAnyDatabase roles.

Create a user with these roles by executing the following script on your MongoDB console client:

use admin
db.createUser(
   {
     user: "dbo",
     pwd: "dbo",
     roles: [ "clusterMonitor", "readAnyDatabase" ]
   }
)

The roles are used for the following purposes:

User role Description
clusterMonitor Required for running commands like serverStatus, replSetGetStatus, and currentOp, as well as fetching database/collection stats for the instance.
readAnyDatabase

Required for fetching query plans for operations, doing index analysis, and retrieving collection sizes.

The scripts are not supported under any SolarWinds support program or service. The scripts are provided AS IS without warranty of any kind. SolarWinds further disclaims all warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The risk arising out of the use or performance of the scripts and documentation stays with you. In no event shall SolarWinds or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the scripts or documentation.

dfad