MongoDB Integration¶
Overview¶
Setup MongoDB integration with Epoch in order to - Monitor MongoDB health and performance - Monitor MongoDB Protocol & Infrastructure metrics
MongoDB protocol datasources related to request/response are available out-of-the-box within the AOC. Please look at pre-canned dashboards for MongoDB or use the Analytics Sandbox to plot charts without any additional configuration.
Note: Protocol metrics are captured by collectors running with EPOCH_ANALYSIS_DEPTH
=layer7
set in their configuration.
In order to access infrastructure datasources, follow the steps listed in the infrastructure integration section below.
Protocol Integration¶
Attributes¶
Below attributes can be used in filters and group by operations in analytics within alerts, dashboards, etc.
API Usage Name | Description | Value / Example |
---|---|---|
mongodb.req.opcode | Request OP_CODE (OP_QUERY/OP_GET_MORE etc.) | |
mongodb.rsp.opcode | Request OP_CODE (OP_REPLY) | |
mongodb.command | Field indicating procedure to invoke at server( insert/ delete etc.) | |
mongodb.responsecode | Integer indicating the respose is success or failure ( 0 is success) | |
mongodb.responsecodename | Human readable equivalent of responsecode received.) | |
mongodb.responseclass | A High level class of response Type | NetworkError,Interruption,NotMasterError,StaleConfig, WriteConcernError,ShutdownError,ConnectionFatalMessageParseError. others , NoError |
mongodb.dbname | MongoDb Database Name like schema | |
mongodb.collectionname | MongoDb collection Name like table | |
mongodb.req.flags | flags received in request opcodes (OP_QUERY etc.) | |
mongodb.rsp.flags | flags received in response opcodes(OP_REPLY) |
There are some attributes that are common across the integrations. The description to the relevant attributes for this integration can be found here: shared attributes
Protocol Datasources¶
Datasource | Available Aggregations | Unit | Description |
---|---|---|---|
mongodb.request_response.latency | sum avg min max std_dev |
millisecond | The aggregated latency across all MongoDB request/response. |
mongodb.request_response.throughput | throughput |
/s | The total number of MongoDB request/response per second. |
mongodb.request_response.count | count |
The total number of MongoDB request/response. | |
mongodb.request.bytes | sum avg min max |
byte | The aggregated number of bytes across all MongoDB requests. |
mongodb.request.bytes.rate | rate |
byte/s | The rate of bytes transferred across all MongoDB requests. |
mongodb.request.packets | sum avg min max |
packet | The aggregated number of packets across all MongoDB requests. |
mongodb.request.packets.rate | rate |
packet/s | The rate of packets transferred across all MongoDB requests. |
mongodb.request.count | count |
The total number of MongoDB requests. | |
mongodb.request.throughput | throughput |
/s | The rate of total number of MongoDB requests. |
mongodb.response.bytes | sum avg min max |
byte | The aggregated number of bytes across all MongoDB responses. |
mongodb.response.bytes.rate | rate |
byte/s | The rate of bytes transferred across all MongoDB responses. |
mongodb.response.packets | sum avg min max |
packet | The aggregated number of packets across all MongoDB responses. |
mongodb.response.packets.rate | rate |
packet/s | The rate of packets transferred across all MongoDB responses. |
mongodb.response.count | count |
The total number of MongoDB responses. | |
mongodb.response.throughput | throughput |
/s | The rate of total number of MongoDB responses. |
Infrastructure Integration¶
Instructions¶
Follow the installation guide below for your given collector environment.
During installation, use the configuration section below as reference.
After installation, the infrastructure datasources in the table below will be available in the AOC.
Installation Guide¶
Installing this integration consists of creating a yaml
file in the filesystem of your collectors.
Click below for instructions on how to do so for your given collectors environment.
Configuration¶
You will need to create a read-only user administrator for epoch. Administrator privileges are required to collect complete server statistics.
In the mongo shell, run:
# Authenticate as the admin user.
use admin
db.auth("admin", "<YOUR_MONGODB_ADMIN_PASSWORD>")
# On MongoDB 2.x, use the addUser command.
db.addUser("epoch", "<UNIQUEPASSWORD>", true)
# On MongoDB 3.x or higher, use the createUser command.
db.createUser({
"user":"epoch",
"pwd": "<UNIQUEPASSWORD>",
"roles" : [
{role: 'read', db: 'admin' },
{role: 'clusterMonitor', db: 'admin'},
{role: 'read', db: 'local' }
]
})
Edit mongo.yaml
to configure the agent. Use the user and password cretaed above to populate server
Please refer mongo.yaml
for all available configuration options.
init_config:
instances:
- server: mongodb://user:pass@host:port/db-name
Restart Epoch agent.
Validating configuration¶
Run the command under Checking Runtime
section of the installation guide applicable to your environment. Look for mongo
under the checks
section in the command output. The output should look like this:
Checks
======
mongo (1.5.2)
-------------
- instance #0 [OK]
- Collected 416 metrics, 0 events & 3 service checks
- Dependencies:
- pymongo: 3.5.1
Infrastructure Datasources¶
Below are the available infrastructure datasources.
Datasource | Available Aggregations | Unit | Description |
---|---|---|---|
mongodb.asserts.msgps | avg max min sum |
assertion/second | Number of message assertions raised per second. |
mongodb.asserts.regularps | avg max min sum |
assertion/second | Number of regular assertions raised per second. |
mongodb.asserts.rolloversps | avg max min sum |
assertion/second | Number of times that the rollover counters roll over per second. The counters rollover to zero every 2^30 assertions. |
mongodb.asserts.userps | avg max min sum |
assertion/second | Number of user assertions raised per second. |
mongodb.asserts.warningps | avg max min sum |
assertion/second | Number of warnings raised per second. |
mongodb.backgroundflushing.average_ms | avg max min sum |
millisecond | Average time for each flush to disk. |
mongodb.backgroundflushing.flushesps | avg max min sum |
flush/second | Number of times the database has flushed all writes to disk. |
mongodb.backgroundflushing.last_ms | avg max min sum |
millisecond | Amount of time that the last flush operation took to complete. |
mongodb.backgroundflushing.total_ms | avg max min sum |
millisecond | Total number of time that the mongod processes have spent writing (i.e. flushing) data to disk. |
mongodb.connections.available | avg max min sum |
connection | Number of unused available incoming connections the database can provide. |
mongodb.connections.current | avg max min sum |
connection | Number of connections to the database server from clients. |
mongodb.cursors.timedout | avg max min sum |
cursor | Total number of cursors that have timed out since the server process started. |
mongodb.cursors.totalopen | avg max min sum |
cursor | Number of cursors that MongoDB is maintaining for clients |
mongodb.dur.commits | avg max min sum |
transaction | Number of transactions written to the journal during the last journal group commit interval. |
mongodb.dur.commitsinwritelock | avg max min sum |
commit | Count of the commits that occurred while a write lock was held. |
mongodb.dur.compression | avg max min sum |
fraction | Compression ratio of the data written to the journal. |
mongodb.dur.earlycommits | avg max min sum |
commit | Number of times MongoDB requested a commit before the scheduled journal group commit interval. |
mongodb.dur.journaledmb | avg max min sum |
mebibyte | Amount of data written to journal during the last journal group commit interval. |
mongodb.dur.timems.commits | avg max min sum |
millisecond | Amount of time spent for commits. |
mongodb.dur.timems.commitsinwritelock | avg max min sum |
millisecond | Amount of time spent for commits that occurred while a write lock was held. |
mongodb.dur.timems.dt | avg max min sum |
millisecond | Amount of time over which MongoDB collected the dur.timeMS data. |
mongodb.dur.timems.preplogbuffer | avg max min sum |
millisecond | Amount of time spent preparing to write to the journal. |
mongodb.dur.timems.remapprivateview | avg max min sum |
millisecond | Amount of time spent remapping copy-on-write memory mapped views. |
mongodb.dur.timems.writetodatafiles | avg max min sum |
millisecond | Amount of time spent writing to data files after journaling. |
mongodb.dur.timems.writetojournal | avg max min sum |
millisecond | Amount of time spent writing to the journal |
mongodb.dur.writetodatafilesmb | avg max min sum |
mebibyte | Amount of data written from journal to the data files during the last journal group commit interval. |
mongodb.extra_info.page_faultsps | avg max min sum |
fault/second | Number of page faults per second that require disk operations. |
mongodb.globallock.activeclients.readers | avg max min sum |
connection | Count of the active client connections performing read operations. |
mongodb.globallock.activeclients.total | avg max min sum |
connection | Total number of active client connections to the database. |
mongodb.globallock.activeclients.writers | avg max min sum |
connection | Count of active client connections performing write operations. |
mongodb.globallock.currentqueue.readers | avg max min sum |
operation | Number of operations that are currently queued and waiting for the read lock. |
mongodb.globallock.currentqueue.total | avg max min sum |
operation | Total number of operations queued waiting for the lock. |
mongodb.globallock.currentqueue.writers | avg max min sum |
operation | Number of operations that are currently queued and waiting for the write lock. |
mongodb.globallock.locktime | avg max min sum |
millisecond | Time since the database last started that the globalLock has been held. |
mongodb.globallock.ratio | avg max min sum |
fraction | Ratio of the time that the globalLock has been held to the total time since it was created. |
mongodb.globallock.totaltime | avg max min sum |
microsecond | Time since the database last started and created the global lock. |
mongodb.indexcounters.accessesps | avg max min sum |
event/second | Number of times that operations have accessed indexes per second. |
mongodb.indexcounters.hitsps | avg max min sum |
hit/second | Number of times per second that an index has been accessed and mongod is able to return the index from memory. |
mongodb.indexcounters.missesps | avg max min sum |
miss/second | Number of times per second that an operation attempted to access an index that was not in memory. |
mongodb.indexcounters.missratio | avg max min sum |
fraction | Ratio of index hits to misses. |
mongodb.indexcounters.resetsps | avg max min sum |
event/second | Number of times per second the index counters have been reset. |
mongodb.locks.collection.acquirecount.exclusiveps | avg max min sum |
lock/second | Number of times the collection lock type was aquired in the Exclusive (X) mode. |
mongodb.locks.collection.acquirecount.intent_exclusiveps | avg max min sum |
lock/second | Number of times the collection lock type was aquired in the Intent Exclusive (IX) mode. |
mongodb.locks.collection.acquirecount.intent_sharedps | avg max min sum |
lock/second | Number of times the collection lock type was aquired in the Intent Shared (IS) mode. |
mongodb.locks.collection.acquirecount.sharedps | avg max min sum |
lock/second | Number of times the collection lock type was aquired in the Shared (S) mode. |
mongodb.locks.collection.acquirewaitcount.exclusiveps | avg max min sum |
wait/second | Number of times the collection lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.collection.acquirewaitcount.sharedps | avg max min sum |
wait/second | Number of times the collection lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.collection.timeacquiringmicros.exclusiveps | avg max min sum |
fraction | Wait time for the collection lock type acquisitions in the Exclusive (X) mode. |
mongodb.locks.collection.timeacquiringmicros.sharedps | avg max min sum |
fraction | Wait time for the collection lock type acquisitions in the Shared (S) mode. |
mongodb.locks.database.acquirecount.exclusiveps | avg max min sum |
lock/second | Number of times the database lock type was aquired in the Exclusive (X) mode. |
mongodb.locks.database.acquirecount.intent_exclusiveps | avg max min sum |
lock/second | Number of times the database lock type was aquired in the Intent Exclusive (IX) mode. |
mongodb.locks.database.acquirecount.intent_sharedps | avg max min sum |
lock/second | Number of times the database lock type was aquired in the Intent Shared (IS) mode. |
mongodb.locks.database.acquirecount.sharedps | avg max min sum |
lock/second | Number of times the database lock type was aquired in the Shared (S) mode. |
mongodb.locks.database.acquirewaitcount.exclusiveps | avg max min sum |
wait/second | Number of times the database lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.database.acquirewaitcount.intent_exclusiveps | avg max min sum |
wait/second | Number of times the database lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.database.acquirewaitcount.intent_sharedps | avg max min sum |
wait/second | Number of times the database lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.database.acquirewaitcount.sharedps | avg max min sum |
wait/second | Number of times the database lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.database.timeacquiringmicros.exclusiveps | avg max min sum |
fraction | Wait time for the database lock type acquisitions in the Exclusive (X) mode. |
mongodb.locks.database.timeacquiringmicros.intent_exclusiveps | avg max min sum |
fraction | Wait time for the database lock type acquisitions in the Intent Exclusive (IX) mode. |
mongodb.locks.database.timeacquiringmicros.intent_sharedps | avg max min sum |
fraction | Wait time for the database lock type acquisitions in the Intent Shared (IS) mode. |
mongodb.locks.database.timeacquiringmicros.sharedps | avg max min sum |
fraction | Wait time for the database lock type acquisitions in the Shared (S) mode. |
mongodb.locks.global.acquirecount.exclusiveps | avg max min sum |
lock/second | Number of times the global lock type was aquired in the Exclusive (X) mode. |
mongodb.locks.global.acquirecount.intent_exclusiveps | avg max min sum |
lock/second | Number of times the global lock type was aquired in the Intent Exclusive (IX) mode. |
mongodb.locks.global.acquirecount.intent_sharedps | avg max min sum |
lock/second | Number of times the global lock type was aquired in the Intent Shared (IS) mode. |
mongodb.locks.global.acquirecount.sharedps | avg max min sum |
lock/second | Number of times the global lock type was aquired in the Shared (S) mode. |
mongodb.locks.global.acquirewaitcount.exclusiveps | avg max min sum |
wait/second | Number of times the global lock type acquisition in the Exclusive (X) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.global.acquirewaitcount.intent_exclusiveps | avg max min sum |
wait/second | Number of times the global lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.global.acquirewaitcount.intent_sharedps | avg max min sum |
wait/second | Number of times the global lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.global.acquirewaitcount.sharedps | avg max min sum |
wait/second | Number of times the global lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.global.timeacquiringmicros.exclusiveps | avg max min sum |
fraction | Wait time for the global lock type acquisitions in the Exclusive (X) mode. |
mongodb.locks.global.timeacquiringmicros.intent_exclusiveps | avg max min sum |
fraction | Wait time for the global lock type acquisitions in the Intent Exclusive (IX) mode. |
mongodb.locks.global.timeacquiringmicros.intent_sharedps | avg max min sum |
fraction | Wait time for the global lock type acquisitions in the Intent Shared (IS) mode. |
mongodb.locks.global.timeacquiringmicros.sharedps | avg max min sum |
fraction | Wait time for the global lock type acquisitions in the Shared (S) mode. |
mongodb.locks.metadata.acquirecount.exclusiveps | avg max min sum |
lock/second | Number of times the metadata lock type was aquired in the Exclusive (X) mode. |
mongodb.locks.metadata.acquirecount.sharedps | avg max min sum |
lock/second | Number of times the metadata lock type was aquired in the Shared (S) mode. |
mongodb.locks.mmapv1journal.acquirecount.intent_exclusiveps | avg max min sum |
lock/second | Number of times the MMAPv1 storage engine lock type was aquired in the Intent Exclusive (IX) mode. |
mongodb.locks.mmapv1journal.acquirecount.intent_sharedps | avg max min sum |
lock/second | Number of times the MMAPv1 storage engine lock type was aquired in the Intent Shared (IS) mode. |
mongodb.locks.mmapv1journal.acquirewaitcount.intent_exclusiveps | avg max min sum |
wait/second | Number of times the MMAPv1 storage engine lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.mmapv1journal.acquirewaitcount.intent_sharedps | avg max min sum |
wait/second | Number of times the MMAPv1 storage engine lock type acquisition in the Intent Shared (IS) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.mmapv1journal.timeacquiringmicros.intent_exclusiveps | avg max min sum |
fraction | Wait time for the MMAPv1 storage engine lock type acquisitions in the Intent Exclusive (IX) mode. |
mongodb.locks.mmapv1journal.timeacquiringmicros.intent_sharedps | avg max min sum |
fraction | Wait time for the MMAPv1 storage engine lock type acquisitions in the Intent Shared (IS) mode. |
mongodb.locks.oplog.acquirecount.intent_exclusiveps | avg max min sum |
lock/second | Number of times the oplog lock type was aquired in the Intent Exclusive (IX) mode. |
mongodb.locks.oplog.acquirecount.sharedps | avg max min sum |
lock/second | Number of times the oplog lock type was aquired in the Shared (S) mode. |
mongodb.locks.oplog.acquirewaitcount.intent_exclusiveps | avg max min sum |
wait/second | Number of times the oplog lock type acquisition in the Intent Exclusive (IX) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.oplog.acquirewaitcount.sharedps | avg max min sum |
wait/second | Number of times the oplog lock type acquisition in the Shared (S) mode encountered waits because the locks were held in a conflicting mode. |
mongodb.locks.oplog.timeacquiringmicros.intent_exclusiveps | avg max min sum |
fraction | Wait time for the oplog lock type acquisitions in the Intent Exclusive (IX) mode. |
mongodb.locks.oplog.timeacquiringmicros.sharedps | avg max min sum |
fraction | Wait time for the oplog lock type acquisitions in the Shared (S) mode. |
mongodb.mem.mapped | avg max min sum |
mebibyte | Amount of mapped memory by the database. |
mongodb.mem.mappedwithjournal | avg max min sum |
mebibyte | The amount of mapped memory, including the memory used for journaling. |
mongodb.mem.resident | avg max min sum |
mebibyte | Amount of memory currently used by the database process. |
mongodb.mem.virtual | avg max min sum |
mebibyte | Amount of virtual memory used by the mongod process. |
mongodb.metrics.cursor.open.notimeout | avg max min sum |
cursor | Number of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout after a period of inactivity. |
mongodb.metrics.cursor.open.pinned | avg max min sum |
cursor | Number of “pinned” open cursors. |
mongodb.metrics.cursor.open.total | avg max min sum |
cursor | Number of cursors that MongoDB is maintaining for clients. |
mongodb.metrics.cursor.timedoutps | avg max min sum |
cursor/second | Number of cursors that time out, per second. |
mongodb.metrics.document.deletedps | avg max min sum |
document/second | Number of documents deleted per second. |
mongodb.metrics.document.insertedps | avg max min sum |
document/second | Number of documents inserted per second. |
mongodb.metrics.document.returnedps | avg max min sum |
document/second | Number of documents returned by queries per second. |
mongodb.metrics.document.updatedps | avg max min sum |
document/second | Number of documents updated per second. |
mongodb.metrics.getlasterror.wtime.numps | avg max min sum |
operation/second | Number of getLastError operations per second with a specified write concern (i.e. w) that wait for one or more members of a replica set to acknowledge the write operation. |
mongodb.metrics.getlasterror.wtime.totalmillisps | avg max min sum |
fraction | Fraction of time (ms/s) that the mongod has spent performing getLastError operations with write concern (i.e. w) that wait for one or more members of a replica set to acknowledge the write operation. |
mongodb.metrics.getlasterror.wtimeoutsps | avg max min sum |
event/second | Number of times per second that write concern operations have timed out as a result of the wtimeout threshold to getLastError |
mongodb.metrics.operation.fastmodps | avg max min sum |
operation/second | Number of update operations per second that neither cause documents to grow nor require updates to the index. |
mongodb.metrics.operation.idhackps | avg max min sum |
query/second | Number of queries per second that contain the _id field. |
mongodb.metrics.operation.scanandorderps | avg max min sum |
query/second | Number of queries per second that return sorted numbers that cannot perform the sort operation using an index. |
mongodb.metrics.queryexecutor.scannedps | avg max min sum |
operation/second | Number of index items scanned per second during queries and query-plan evaluation. |
mongodb.metrics.record.movesps | avg max min sum |
operation/second | Number of times per second documents move within the on-disk representation of the MongoDB data set. |
mongodb.metrics.repl.apply.batches.numps | avg max min sum |
operation/second | Number of batches applied across all databases per second. |
mongodb.metrics.repl.apply.batches.totalmillisps | avg max min sum |
fraction | Fraction of time (ms/s) the mongod has spent applying operations from the oplog. |
mongodb.metrics.repl.apply.opsps | avg max min sum |
operation/second | Number of oplog operations applied per second. |
mongodb.metrics.repl.buffer.count | avg max min sum |
operation | Number of operations in the oplog buffer. |
mongodb.metrics.repl.buffer.maxsizebytes | avg max min sum |
byte | Maximum size of the buffer. |
mongodb.metrics.repl.buffer.sizebytes | avg max min sum |
byte | Current size of the contents of the oplog buffer. |
mongodb.metrics.repl.network.bytesps | avg max min sum |
byte/second | Amount of data read from the replication sync source per second. |
mongodb.metrics.repl.network.getmores.numps | avg max min sum |
operation/second | Number of getmore operations per second. |
mongodb.metrics.repl.network.getmores.totalmillisps | avg max min sum |
fraction | Fraction of time (ms/s) required to collect data from getmore operations. |
mongodb.metrics.repl.network.opsps | avg max min sum |
operation/second | Number of operations read from the replication source per second. |
mongodb.metrics.repl.network.readerscreatedps | avg max min sum |
process/second | Number of oplog query processes created per second. |
mongodb.metrics.ttl.deleteddocumentsps | avg max min sum |
document/second | Number of documents deleted from collections with a ttl index per second. |
mongodb.metrics.ttl.passesps | avg max min sum |
operation/second | Number of times per second the background process removes documents from collections with a ttl index. |
mongodb.opcounters.commandps | avg max min sum |
command/second | Total number of commands per second issued to the database. |
mongodb.opcounters.deleteps | avg max min sum |
operation/second | Number of delete operations per second. |
mongodb.opcounters.getmoreps | avg max min sum |
operation/second | Number of getmore operations per second. |
mongodb.opcounters.insertps | avg max min sum |
operation/second | Number of insert operations per second. |
mongodb.opcounters.queryps | avg max min sum |
query/second | Total number of queries per second. |
mongodb.opcounters.updateps | avg max min sum |
operation/second | Number of update operations per second. |
mongodb.opcountersrepl.commandps | avg max min sum |
command/second | Total number of replicated commands issued to the database per second. |
mongodb.opcountersrepl.deleteps | avg max min sum |
operation/second | Number of replicated delete operations per second. |
mongodb.opcountersrepl.getmoreps | avg max min sum |
operation/second | Number of replicated getmore operations per second. |
mongodb.opcountersrepl.insertps | avg max min sum |
operation/second | Number of replicated insert operations per second. |
mongodb.opcountersrepl.queryps | avg max min sum |
query/second | Total number of replicated queries per second. |
mongodb.opcountersrepl.updateps | avg max min sum |
operation/second | Number of replicated update operations per second. |
mongodb.oplog.logsizemb | avg max min sum |
mebibyte | Total size of the oplog. |
mongodb.oplog.timediff | avg max min sum |
second | Oplog window: difference between the first and last operation in the oplog. |
mongodb.oplog.usedsizemb | avg max min sum |
mebibyte | Total amount of space used by the oplog. |
mongodb.replset.health | avg max min sum |
Member health value of the replica set: conveys if the member is up (i.e. 1) or down (i.e. 0). | |
mongodb.replset.replicationlag | avg max min sum |
second | Delay between a write operation on the primary and its copy to a secondary. |
mongodb.stats.datasize | avg max min sum |
byte | Total size of the data held in this database including the padding factor. |
mongodb.stats.indexes | avg max min sum |
index | Total number of indexes across all collections in the database. |
mongodb.stats.indexsize | avg max min sum |
byte | Total size of all indexes created on this database. |
mongodb.stats.objects | avg max min sum |
object | Number of objects (documents) in the database across all collections. |
mongodb.stats.storagesize | avg max min sum |
byte | Total amount of space allocated to collections in this database for document storage. |
mongodb.uptime | avg max min sum |
second | Number of seconds that the mongos or mongod process has been active. |
mongodb.wiredtiger.cache.bytes_currently_in_cache | avg max min sum |
byte | Size of the data currently in cache. |
mongodb.wiredtiger.cache.failed_eviction_of_pages_exceeding_the_in_memory_maximumps | avg max min sum |
page/second | Number of failed eviction of pages that exceeded the in-memory maximum, per second. |
mongodb.wiredtiger.cache.in_memory_page_splits | avg max min sum |
split | In-memory page splits. |
mongodb.wiredtiger.cache.maximum_bytes_configured | avg max min sum |
byte | Maximum cache size. |
mongodb.wiredtiger.cache.maximum_page_size_at_eviction | avg max min sum |
byte | Maximum page size at eviction. |
mongodb.wiredtiger.cache.modified_pages_evicted | avg max min sum |
page | Number of pages, that have been modified, evicted from the cache. |
mongodb.wiredtiger.cache.pages_currently_held_in_cache | avg max min sum |
page | Number of pages currently held in the cache. |
mongodb.wiredtiger.cache.pages_evicted_by_application_threadsps | avg max min sum |
page/second | Number of page evicted by application threads per second. |
mongodb.wiredtiger.cache.pages_evicted_exceeding_the_in_memory_maximumps | avg max min sum |
page/second | Number of pages evicted because they exceeded the cache in-memory maximum, per second. |
mongodb.wiredtiger.cache.tracked_dirty_bytes_in_cache | avg max min sum |
byte | Size of the dirty data in the cache. |
mongodb.wiredtiger.cache.unmodified_pages_evicted | avg max min sum |
page | Number of pages, that were not modified, evicted from the cache. |
mongodb.wiredtiger.concurrenttransactions.read.available | avg max min sum |
ticket | Number of available read tickets (concurrent transactions) remaining. |
mongodb.wiredtiger.concurrenttransactions.read.out | avg max min sum |
ticket | Number of read tickets (concurrent transactions) in use. |
mongodb.wiredtiger.concurrenttransactions.read.totaltickets | avg max min sum |
ticket | Total number of read tickets (concurrent transactions) available. |
mongodb.wiredtiger.concurrenttransactions.write.available | avg max min sum |
ticket | Number of available write tickets (concurrent transactions) remaining. |
mongodb.wiredtiger.concurrenttransactions.write.out | avg max min sum |
ticket | Number of write tickets (concurrent transactions) in use. |
mongodb.wiredtiger.concurrenttransactions.write.totaltickets | avg max min sum |
ticket | Total number of write tickets (concurrent transactions) available. |
mongodb.collection.size | avg max min sum |
byte | The total size in bytes of the data in the collection plus the size of every indexes on the mongodb.collection. |
mongodb.collection.avgObjSize | avg max min sum |
byte | The size of the average object in the collection in bytes. |
mongodb.collection.count | avg max min sum |
item | Total number of objects in the collection. |
mongodb.collection.capped | avg max min sum |
record | Whether or not the collection is capped. |
mongodb.collection.max | avg max min sum |
document | Maximum number of documents in a capped collection. |
mongodb.collection.maxSize | avg max min sum |
byte | Maximum size of a capped collection in bytes. |
mongodb.collection.storageSize | avg max min sum |
byte | Total storage space allocated to this collection for document storage. |
mongodb.collection.nindexes | avg max min sum |
index | Total number of indices on the collection. |
mongodb.collection.indexSizes | avg max min sum |
byte | Size of index in bytes. |