MongoDB

Integration Installation

  1. Install the Astradot Infra Agent on your server

  2. Add a user account to MongoDb with appropriate permissions

    db.createUser({"user":"astuser", "pwd": "pwd1234343", "roles" : [
        {role: 'read', db: 'admin' }, {role: 'clusterMonitor', db: 'admin'}, 
        {role: 'read', db: 'mydb' }]})
  3. Edit /etc/astradot-infra/integrations/mongodb.toml

    #For every mongodb instance to monitor, add an [[instance]] block
    [[instance]]
    host = "localhost"
    port = 27017
    username = "astuser"
    password = "pwd1234343"
    database = "mydb""
  4. Restart astradot-infra agent

    service astradot-infra restart

Metrics

Metric
Description

Connections

The number of incoming connections from clients to the database server

Opcounters - Query

Rate of queries

Opcounters - Insert

Rate of insert operations

Opcounters - Update

Rate of update operations

Opcounters - Delete

Rate of delete operations

Opcounters - Getmore

Rate of 'getmore' operations

Opcounters - Command

Rate of commands. Counts all commands except the write commands: insert, update, and delete

Opcounters Replication - Insert

Rate of replicated insert operations

Opcounters Replication - Update

Rate of replicated update operations

Opcounters Replication - Delete

Rate of replicated delete operations

Opcounters Replication - Command

Rate of replicated commands

Documents - Inserted

Rate of documents inserted

Documents - Updated

Rate of documents updated

Documents - Deleted

Rate of documents deleted

Documents - Returned

Rate of documents returned by queries

Cursors - Open

Open cursors

Cursors - Timed Out

Rate of timed out cursors

Journal - Commits

The number of transactions written to the journal during the last journal group commit interval

Journal - Journaled

The amount of data in megabytes (MB) written to journal dduring the last journal group commit interval

Journal - Written to files

The amount of data written from journal to the data files during the last journal group commit interval

Network - Bytes In

Rate of network traffic received

Network - Bytes Out

Rate of network traffic sent

Network - Request Rate

Rate of distinct network requests received

Asserts - Regular

Rate of regular assertions

Asserts - Msg

Rate of message assertions

Asserts - User

Rate of "user asserts"

Query Executor - Scanned

Rate of index items scanned during queries and query-plan evaluation

Query Executor - Scanned Objects

Rate of documents scanned during queries and query-plan evaluation

Page Faults

Rate of page faults

Global Lock Queue - Readers

Number of operations that are currently queued and waiting for the read lock

Global Lock Queue - Writers

Number of operations that are currently queued and waiting for the write lock

Operations - Scan and Order

Rate of queries that return sorted numbers that cannot perform the sort operation using an index

Operations - Write Conflicts

Rate of queries that encountered write conflicts

Last updated

Was this helpful?