This documentation is archived and will no longer be updated.
Since Geneos 6.5.x, the MongoDB Collection Agent plugin has replaced the MongoDB integration.
MongoDB monitoring is a Gateway configuration file that enables monitoring of MongoDB through the Toolkit plug-in.
MongoDB can monitor the database environment in a measurable way to spot any potential discrepancies and issues.
Some key areas to track when using MongoDB monitoring:
|Determine the crucial alerts to be set in the metrics to avoid any performance issues or errors.
|Monitor the database's current state.
|Monitor the number of client connections to avoid abnormal traffic loads that can lead to performance issues.
|Show errors raised during the selected time period.
MongoDB helps you to get an overview of database operations, such as:
- Track the current state of database.
- View reports of asserts on the database.
- Monitor the metrics for write performance.
- View contains storage statistics for a given database.
- Check reports information regarding the state and use of indexes in MongoDB.
Intended audience Copied
This guide is intended for users who are setting up, configuring, troubleshooting and maintaining this integration. This is also intended for users who will be using Active Console to monitor data from MongoDB. Once the integration is set up, the samplers providing the dataviews become available to that Gateway.
As a user, you should be familiar with MySQL or any other database, and with the administration of the MongoDB servers.
The following requirements must be met before the installation and setup of the template:
- A machine running the Netprobe must have access to the host where the MongoDB instance is installed and the port MongoDB is listening to.
- Netprobe version 4.6 or higher.
- Gateway version 4.8 or higher.
- MongoDB version 3.6.
Installation procedure Copied
Ensure that you have read and can follow the system requirements prior to installation and setup of this integration template.
- Download the integration package
geneos-integration-mongoDB-<version>.zipfrom the Downloads site.
- Open Gateway Setup Editor.
- In the Navigation panel, click Includes to create a new file.
- Enter the location of the file to include in the Location field. In this example, it is the
- Update the Priority field. This can be any value except
1. If you input a priority of
1, the Gateway Setup Editor returns an error.
- Expand the file location in the Include section.
- Select Click to load.
- Click Yes to load the new MongoDB include file.
- Click Managed entities in the Navigation panel.
- Add the MongoDB type to the Managed Entity section that you will use to monitor MongoDB.
- Click Validate current document to check your configuration.
- Click Save current document to apply the changes.
Set up the samplers Copied
These are the pre-configured samplers available to use in
Configure the required fields by referring to the table below:
Set up the variables Copied
MongoDBMonitoring.xml template provides the following variables that are set in the Environments section:
|Sample interval used by all the Mongo samplers.
|Full path of the Mongo client. The toolkit script uses this to communicate with the MongoDB instance.
|Group name used by all the Mongo Samplers.
Follow the format <host>:<port>
|Directory where the sampler scripts will be generated.
|Specifies the name of the database to connect to.
NoteThe default values can be changed by providing an environment named Mongo with a higher priority in the set-up file, or by using an environment in the Managed entity where the type is defined.
Set up the rules Copied
MongoDBMonitoring-SampleRules.xml template also provides a separate sample rules that can be used to configure the Gateway Setup Editor.
Your configuration rules must be set in the Includes section. In the Navigation panel, click Rules
The table below shows the included rules in the integration file.
Metrics and dataviews Copied
MongoDB asserts Copied
This view reports the number of asserts on the database:
|Number of message assertions raised since the server process started.
|Number of regular assertions raised since the server process started.
|Number of user-asserts that have occurred since the last time the server process started.
|Number of warnings raised since the server process started.
MongoDB background flushing Copied
The information on this view appears only for instances that use the MMAPv1 storage engine. Mongod periodically flushes and writes to disk.
In the default configuration, this happens every 60 seconds. This view contains data regarding these operations.
These metrics are important for write performance and journaling.
MongoDB concurrent transactions Copied
The information on this view appears only for instances that use the wiredTiger storage engine.
This contains ticket details that the wiredTiger uses for its thread management.
MongoDB cursors Copied
This view contains data regarding cursor state and use:
|Number of open cursors with timeout disabled.
|Number of cursors that MongoDB is maintaining for clients. Since MongoDB exhausts unused cursors, this value is usually small or zero.
|Provides a counter of the total number of cursors that have timed out since the server process started. If this number is larger or growing at a regular rate, this may indicate an application error.
MongoDB dbStats Copied
This view contains storage statistics for a given database. You can pass their database to the provided script:
|Total size in bytes of the data held in this database including the padding factor.
|Total size in bytes of all indexes created on this database.
|Contains a count of the number of objects like documents in the database across all collections.
|Total amount of space in bytes allocated to the collections in this database for document storage.
MongoDB instance Copied
This view contains a build summary for the MongoDB server instance:
|Configured host in the system.
|Current time based on the server.
|Status of the server instance.
|Process ID number.
|Current MongoDB process: mongod or mongos.
|Type of storage engine.
|Number of seconds that the MongoDB process has been active.
|Number in seconds based from MongoDB’s internal time keeping system.
|Number of milliseconds that the MongoDB process has been active.
|Version of the current MongoDB process.
MongoDB locks Copied
This view provides a granular report on MongoDB database-level lock use:
Number of times the lock has been acquired. Possible lock modes:
Number of times when lock acquisitions waits because locks have encountered conflicts. Possible lock modes:
Cumulative waiting time in microseconds for the lock acquisition. Possible lock modes:
MongoDB memory Copied
This view contains the MongoDB memory metrics:
|Provides the amount of mapped memory (in MB) by the database. Because MongoDB uses memory-mapped files, this value is likely to be roughly equivalent to the total size of your database(s).
|Virtual memory collected by connections.
|Number of times MongoDB has requested to connect from disk per second.
|Equivalent to the amount of RAM (in MB) currently used by the database process. In normal use this value tends to grow, approaching total amount of system memory in dedicated servers.
|Displays the quantity (in MB) of virtual memory used by the mongod process. If virtual value is significantly larger than mapped (e.g. 3 or more times), this may indicate a memory leak.
MongoDB opcounters Copied
This view provides an overview of database operations by type. These numbers will grow over time and in response to database use:
|Provides a counter of the total number of "getmore" operations since the mongod instance last started. This counter can be high even if the query count is low.
|Total number of "insert" operations since the mongod instance last started.
|Total number of queries since the mongod instance last started.
|Number of clients with read operations.
|Total number of "update" operations since the mongod instance last started.
|Number of clients with write operations.
MongoDB replication Copied
This information appears only if the replica set is used and it contains metrics related to replication:
|Unique identifier for each replication.
|Value of state between 0 and 10 that represents the replica state.
|Describes the state string.
|Shows the delay between a write operation on the primary and to its secondary. If the replication lag is set to zero, that means that there is no load issues yet.