# Agents generated by the plugin

The plugin will create an agent for each target database. That agent will contain the following modules  
  
**At the instance level**

If **engine\_uptime** is activated:

<table border="1" id="bkmrk-uptime-muestra-el-ti"><colgroup><col></col><col></col></colgroup><tbody><tr><td>uptime</td><td>Displays the time the MongoDB server has been running since its last reset or startup.</td></tr></tbody></table>

If **query\_stats** is activated:

<table border="1" id="bkmrk-queries-command-cant"><colgroup><col></col><col></col></colgroup><tbody><tr><td>queries command</td><td>Number of MongoDB queries involving command operations.</td></tr><tr><td>queries delete </td><td>Number of delete operations performed on the MongoDB database.</td></tr><tr><td>queries getmore</td><td>Number of "getmore" operations executed, "getmore" is used to get more results from a query when the results do not fit in a single batch.</td></tr><tr><td>queries insert</td><td>Number of insert operations performed on the MongoDB database.</td></tr><tr><td>queries query</td><td>Number of query operations performed on the MongoDB database.</td></tr><tr><td>queries update</td><td>Number of update operations performed on the MongoDB database.</td></tr></tbody></table>

If **analyze\_connections** is activated:

<table border="1" id="bkmrk-connections-availabl"><colgroup><col></col><col></col></colgroup><tbody><tr><td>connections available</td><td>Number of available connections on the MongoDB server</td></tr><tr><td>connections current</td><td>Current number of active connections on the MongoDB server</td></tr><tr><td>connections totalCreated</td><td>Total number of connections that have been created on the MongoDB server since it was started or restarted.</td></tr><tr><td>MONGODB connection</td><td>Current connection availability</td></tr></tbody></table>

If **latency** is activated:

<table border="1" id="bkmrk-commands-latency-lat"><colgroup><col></col><col></col></colgroup><tbody><tr><td>commands latency</td><td>Average latency of command type operations in MongoDB.</td></tr><tr><td>commands ops</td><td>Total number of command type operations performed in MongoDB.</td></tr><tr><td>reads latency</td><td>Average latency of read operations in MongoDB.</td></tr><tr><td>reads ops</td><td>Total number of read operations performed on MongoDB.</td></tr><tr><td>writes latency</td><td>Average latency of MongoDB write operations.</td></tr><tr><td>writes ops</td><td>Total number of write operations performed on MongoDB.</td></tr></tbody></table>

If **network** is activated:

<table border="1" id="bkmrk-bytesin-cantidad-tot"><colgroup><col></col><col></col></colgroup><tbody><tr><td>bytesIn</td><td>Total number of bytes that have been received by the MongoDB server since it was started or restarted.</td></tr><tr><td>bytesOut</td><td>Total number of bytes that have been sent by the MongoDB server to clients or applications since it was started or restarted.</td></tr><tr><td>numRequests</td><td>Total number of requests that the MongoDB server has received since it was started or restarted.</td></tr></tbody></table>

**At the database level**

<table border="1" id="bkmrk-%3Cdb_name%3E-collection" style="border-collapse: collapse; width: 100%; height: 422.8px;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><tbody><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; collections</td><td style="height: 29.6333px;">Number of collections in the database.</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; indexes</td><td style="height: 29.6333px;">Number of indexes in the database.</td></tr><tr style="height: 46.4333px;"><td style="height: 46.4333px;">&lt;db\_name&gt; indexSize</td><td style="height: 46.4333px;">Total size of all indexes in the database in bytes.</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; views</td><td style="height: 29.6333px;">Number of views in the database.</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; objects</td><td style="height: 29.6333px;">Number of documents (objects) in the database.</td></tr><tr style="height: 46.4333px;"><td style="height: 46.4333px;">&lt;db\_name&gt; avgObjSize</td><td style="height: 46.4333px;">Average size of documents in the database in bytes.</td></tr><tr style="height: 46.4333px;"><td style="height: 46.4333px;">&lt;db\_name&gt; ataSize</td><td style="height: 46.4333px;">Total size of data within the database in bytes.</td></tr><tr style="height: 46.4333px;"><td style="height: 46.4333px;">&lt;db\_name&gt; storageSize</td><td style="height: 46.4333px;">Total amount of space used by the database on disk, including indexes and padding, in bytes.</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; totalSize</td><td style="height: 29.6333px;">Sum of dataSize and indexSize, representing the total size of the database in bytes</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; fsUsedSize</td><td style="height: 29.6333px;">Space used in the file system where the database resides in bytes.</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; fsTotalSize</td><td style="height: 29.6333px;">Total size of the file system where the database resides, in bytes.</td></tr><tr style="height: 29.6333px;"><td style="height: 29.6333px;">&lt;db\_name&gt; status</td><td style="height: 29.6333px;">Database status (1 = OK, 0 = error).</td></tr></tbody></table>