MongoDB
Supported MongoDB versions and how HEAL monitors them out of the box.
Supported Components and Versions#
| LAYER | COMPONENT | VERSION |
|---|---|---|
| DB Server | Mongo DB | 4.0.5 and above |
Monitoring Strategies for Components#
MongoDB is available out of the box from HEAL. The producer scripts uses MongoDB specific command line arguments and SQL queries. The metrics produced by this producer script are pushed to HEAL’s Ingestion API layer by the Component Agent.
KPIs collected#
| Component Name | kpi_name | kpi_identifier | KpiDescription | Units |
|---|---|---|---|---|
| Mongo DB | Current Connections | MONGODB_CURRENT_CONNECTIONS | The number of incoming connections from clients to the database server | Count |
| Mongo DB | Available Connections | MONGODB_AVAILABLE_CONNECTIONS | measures the number of available connections to a database or server. | Count |
| Mongo DB | Total Created Connections | MONGODB_TOTALCREATED_CONNECTIONS | Count of all incoming connections created to the server. | Count |
| Mongo DB | Active Connections | MONGODB_ACTIVE_CONNECTIONS | the number of active client connections in the system at a given time. | Count |
| Mongo DB | Threaded Connections | MONGODB_THREADED_CONNECTIONS | The number of incoming connections from clients that are assigned to threads that service client requests. | Count |
| Mongo DB | Page Faults | MONGODB_PAGE_FAULTS | The total number of page faults | Count |
| Mongo DB | Insert Opertaions | MONGODB_INSERT_OPERATIONS | The total number of insert operations received since the mongod instance last started. | Count |
| Mongo DB | Query Operations | MONGODB_QUERY_OPERATIONS | The total number of queries received since the mongod instance last started. | Count |
| Mongo DB | Update Operations | MONGODB_UPDATE_OPERATIONS | The total number of update operations received since the mongod instance last started. | Count |
| Mongo DB | Delete Operations | MONGODB_DELETE_OPERATIONS | The total number of delete operations since the mongod instance last started. | Count |
| Mongo DB | Retried Commands Count | MONGODB_RETRIED_COMMANDS_COUNT | The total number of retry attempts that have been received after the corresponding retryable write command has already been committed. | Count |
| Mongo DB | Retried Statements Count | MONGODB_RETRIED_STATEMENTS_COUNT | The total number of write statements associated with the retried commands | Count |
| Mongo DB | Transactions Collection Write Count | MONGODB_TRANSACTIONS_COLLECTION_WRITE | The total includes writes to a server config.transactions collection that occur as part of a migration. | Count |
| Mongo DB | Current Active | MONGODB_CURRENT_ACTIVE | The total number of open transactions currently executing a command. | Count |
| Mongo DB | Current Inactive | MONGODB_CURRENT_INACTIVE | The total number of open transactions that are not currently executing a command. | Count |
| Mongo DB | Current Open | MONGODB_CURRENT_OPEN | The total number of open transactions | Count |
| Mongo DB | Total Aborted | MONGODB_TOTAL_ABORTED | The total number of transactions aborted on this instance since its last startup. | Count |
| Mongo DB | Total Committed | MONGODB_TOTAL_COMMITTED | The total number of transactions committed on the instance since its last startup. | Count |
| Mongo DB | Total Started | MONGODB_TOTAL_STARTED | The total number of transactions started on this instance since its last startup. | Count |
| Mongo DB | Total Prepared | MONGODB_TOTAL_PREPARED | The total number of transactions in prepared state on this server since the mongod process last startup. | Count |
| Mongo DB | Total Prepared Then Committed | MONGODB_TOTAL_PREPARED_THEN_COMMITTED | The total number of transactions that were prepared and committed on this server since the mongod process last startup. | Count |
| Mongo DB | Total Prepared Then Aborted | MONGODB_TOTAL_PREPARED_THEN_ABORTED | The total number of transactions that were prepared and aborted on this server since the mongod process last startup. | Count |
| Mongo DB | Current Prepared | MONGODB_CURRENT_PREPARED | The current number of transactions in prepared state on this server. | Count |
| Mongo DB | Awaiting Topology Changes | MONGODB_AWAITINGTOPOLOGYCHANGES_CONNECTIONS | Number of connections that are currently waiting for changes to the MongoDB servers topology to occur before they can be utilized. | Count |
| Mongo DB | Input blocks | MONGODB_INPUT_BLOCKS | Input blocks refer to blocks of data read from storage or disk during database operations. | Count |
| Mongo DB | Output blocks | MONGODB_OUTPUT_BLOCKS | Output blocks refer to blocks of data written to storage or disk during database operations. | Count |
| Mongo DB | Page reclaims | MONGODB_PAGE_RECLAIMS | This metric typically represents the number of times MongoDB has managed to free up memory pages that were previously in use but are no longer needed. | Count |
| Mongo DB | Bytes In | MONGODB_BYTESIN | This indicates the total number of bytes received by the MongoDB server since it started. It represents incoming network traffic to the server. | Bytes |
| Mongo DB | Bytes Out | MONGODB_BYTESOUT | This indicates the total number of bytes sent by the MongoDB server since it started. It represents outgoing network traffic from the server. | Bytes |
| Mongo DB | Number of requests | MONGODB_NUMREQUESTS | This represents the total number of requests received by the MongoDB server since it started. It includes all types of requests, such as queries, inserts, updates, deletes, and administrative commands | Count |
| Mongo DB | Physical Bytes In | MONGODB_PHYSICALBYTESIN | This metric represents the total number of uncompressed bytes received by the MongoDB server process over the network since the server started. | Bytes |
| Mongo DB | Physical Bytes Out | MONGODB_PHYSICALBYTESOUT | This metric represents the total number of uncompressed bytes sent by the MongoDB server process over the network since the server started. | Bytes |
| Mongo DB | Resident Memory | MONGODB_RESIDENT_MEM | This indicates the amount of memory (in bytes) that is currently being used by the MongoDB server process and is held in RAM (resident memory). | Bytes |
| Mongo DB | Virtual Memory | MONGODB_VIRTUAL_MEM | 'This indicates the total amount of memory (in bytes) that is allocated to the MongoDB server process, including both resident and virtual memory.' | Bytes |
| Mongo DB | Bytes Written To Cache | MONGODB_BYTES_WRITTEN | This metric represents the cumulative size of data written from the cache (memory) to disk. | Bytes |
| Mongo DB | Total Bytes of Page Images | MONGODB_TOTAL_BYTES_OF_PAGE_IMAGES | This metric represents the total number of bytes belonging to page images currently stored in the cache. | Bytes |
| Mongo DB | Total Bytes of Overflow Table | TOTAL_BYTES_OF_OVERFLOW_TABLE | This metric represents the total number of bytes belonging to the cache overflow table currently stored in the cache. | Bytes |
| Mongo DB | Total Bytes in Cache | MONGODB_TOTAL_BYTES | This metric represents the total number of bytes currently stored in the cache. | Bytes |
| Mongo DB | Total Dirty Bytes in Cache | MONGODB_TOTAL_DIRTY_BYTES | This metric represents the cumulative total number of dirty bytes in the cache. | Bytes |
| Mongo DB | Total Bytes Not in Page Images | MONGODB_TOTAL_BYTES_NOT_IN_PAGE_IMAGES | This metric represents the total number of bytes not belonging to page images currently stored in the cache. | Bytes |
| Mongo DB | No of checkpoint locks acquired | MONGODB_CHECKPOINT_LOCK_ACQUIRED | Number of times the checkpoint lock has been acquired by operations in the WiredTiger storage engine. | Count |
| Mongo DB | No of Table Read Locks acquired | MONGODB_TABLE_READ_LOCK_ACQUIRED | Number of times the table-level read lock has been acquired in MongoDB | Count |
| Mongo DB | No of Table Write Locks acquired | MONGODB_TABLE_WRITE_LOCK_ACQUIRED | Number of times the table-level write lock has been acquired in MongoDB | Count |
| Mongo DB | No of Schema Locks | MONGODB_SCHEMA_LOCK_ACQUIRED | Number of times schema locks have been acquired in MongoDB | Count |
| Mongo DB | No of wait for global read lock | MONGODB_TOTAL_NO_OF_WAIT_FOR_READ_LOCK | Number of times threads had to wait to acquire the global read lock. | Count |
| Mongo DB | Total time for Global Read Lock | MONGODB_TOTAL_TIME_FOR_READ_LOCK | Total time spent acquiring the global read lock in microseconds. | Microseconds |
| Mongo DB | No of Database Read Locks acquired | MONGODB_TOTAL_NO_OF_WAIT_FOR_DB_READ_LOCK | Number of times the lock has been acquired for database read | Count |
| Mongo DB | No of Database Write Locks acquired | MONGODB_TOTAL_NO_OF_WAIT_FOR_DB_WRITE_LOCK | Number of times the lock has been acquired for database write | Count |
| Mongo DB | No of Collection Read Locks acquired | MONGODB_TOTAL_NO_OF_WAIT_FOR_COLLECTION_READ_LOCK | Number of times the lock has been acquired for Collection read | Count |
| Mongo DB | No of Collection Write Locks acquired | MONGODB_TOTAL_NO_OF_WAIT_FOR_COLLECTION_WRITE_LOCK | Number of times the lock has been acquired for Collection write | Count |
| Mongo DB | No of times for operation read lock | MONGODB_TOTAL_NO_OF_WAIT_FOR_OPERATION_READ_LOCK | Number of times the lock has been acquired for all operation read. | Count |
| Mongo DB | Total Log Buffer size | MONGODB_TOTAL_LOG_BUFFER_SIZE | The log buffer is a temporary storage area in memory where log entries are accumulated before being flushed to the log files on disk. | Bytes |
| Mongo DB | Max Log File Size | MONGODB_MAXIMUM_LOG_FILE_SIZE | 'This metric represents the maximum size limit for individual log files, typically measured in bytes.' | Bytes |
| Mongo DB | Total Log Bytes Writtten | MONGODB_LOG_BYTES_WRITTEN | This metric represents the cumulative size of data written to the log files on disk. | Bytes |
| Mongo DB | Number Of Read Count | MONGODB_NO_OF_READ_COUNT | The total number of read operations performed on the database within a specified timeframe | Count |
| Mongo DB | Number Of Write Count | MONGODB_NO_OF_WRITE_COUNT | The total number of write operations performed on the database within a specified timeframe | Count |