Monitor MongoDB Atlas
Prerequisites
To collect metrics of Mongo DB Atlas, it is necessary to have sfPoller set up within your environment. Click here to learn more about configure account settings.
Add Cloud Account in sfPoller
Follow the below step to add an account in sfPoller.
Go the the Manage tab > Cloud Account section of sfPoller.
Select the
Add
option.In the Add Cloud Account window, select the account type from the drop-down list and fill the following details:
- Account Type - Select MongoDB Atlas
- Name - Give a name to the account
- IP - Give the IP address of your Mongo Db Atlas
- Instance Name - Give instance name of your Mongo Db Atlas
Select the
Save
button.
Configure sfPoller to Collect Metrics
Follow the below step to add endpoints and plugins:
In the Application tab of sfPoller, navigate to your Project > Application.
Click on the Application, it will take you to the
Endpoint
page.Click the
Add Endpoint
button, add the following data, and save.- Service Type - Select service type as
mongoAtlas
- Name - Give a unique name to the endpoint
- IP/Endpoint - Give the IP address of your Mongo Db Atlas
- Instance Name - Give instance name of your Mongo Db Atlas
- Service Type - Select service type as
In the Plugins window, click the
+Add
button.In the Add Plugin window, select the below details and save.
Plugin Type - Select plugin type as
Metric
Plugin - Select plugin as
mongodbAtlas
Username - Give the username of the Mongo DB Atlas account
password - Give the password of the Mongo DB Atlas account
PrivateKey - Give the private key from your Mongo DB Atlas account
PublicKey - Give the public key from your Mongo DB Atlas account
ProjectId - Give the project id rom your Mongo DB Atlas account
PrimaryIpPort - Give the primary IP port from your Mongo DB Atlas account
Document Types: Select the document types from drop-down
Interval: Choose an interval value. The minimum value for the interval is 300
Status: By default, the status is
Enabled
Click the global
Save
button in the window's top right corner to save all the changes made so far.
View Database Metrics
Follow the below steps to view the metrics collected from Mongo DB Atlas.
Go to the Application tab in SnappyFlow and navigate to your Project > Application > Dashboard.
You can view the database metrics in the Metrics section.
Once plugins are added to sfPoller, they will be automatically detected within the Metrics section. However, if the plugins are not detected, you can import templates to view the corresponding metrics.
- To access the unprocessed data gathered from the plugins, navigate to the Browse data section and choose the
Index: Metric
,Instance: Endpoint
,Plugin,
andDocument Type
.
Metric List
DBStats
Name | Description |
---|---|
Collections | Contains a count of the number of collections in that database |
DataSize | Total size of the data held in this database including the padding factor.Shown as byte |
Db | database name |
IndexSize | Total size of all indexes created on this database.Shown as byte |
StorageSize | Total amount of space allocated to collections in this database for document storage.Shown as byte |
TotalSize | Total size of the data held in this database including the padding factor |
System Info
Name | Description |
---|---|
Version | version of mongodb |
UptimeMillis | Number of seconds that the mongos or mongod process has been active |
availabeConnection | Number of unused available incoming connections the database can provide |
currentConnection | Number of connections to the database server from clients |
activeConnections | Number of active connections to the database server from clients |
aggDataSize | Total size of the data held in this database including the padding factor |
FsTotalSize | Total size of all disk capacity on the filesystem where MongoDB stores data |
aggFsUsedSize | Total size of all disk space in use on the filesystem where MongoDB stores data |
aggStorageSize | Sum of the space allocated to all collections in the database for document storage, including free space |
aggTotalSize | Sum of the space allocated for both documents and indexes in all collections in the database. Includes used and free storage space. This is the sum of storageSize and indexSize |
TotalDb | total number of databases |
Operational Metrics
Name | Description |
---|---|
insertQuery | Number of times insert executed |
updateQuery | Number of times update executed |
deleteQuery | Number of times delete executed |
dirtyBytesInCache | Size of the dirty data in the cache |
CacheSize | Maximum cache size |
CurrentQueueTotal | Total number of operations queued waiting for the lock |
CurrentQueueReaders | Number of operations that are currently queued and waiting for the read lock |
CurrentQueueWriters | Number of operations that are currently queued and waiting for the write lock |
ActiveClientsTotal | Total number of active client connections to the database |
ActiveClientsReaders | Count of the active client connections performing read operations |
ActiveClientswriters | Count of active client connections performing write operations |
readLatency | Total latency statistics for read requests per second |
writeLatency | Total latency statistics for write operations per second |
PhysicalBytesIn | The number of bytes that reflects the amount of network traffic received by this database |
PhysicalBytesOut | The number of bytes that reflects the amount of network traffic sent from this database |
CurrentCache | Size of the data currently in cache |