WARNING: Version 5.4 of Metricbeat has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
MongoDB Fields
editMongoDB Fields
editMetrics collected from MongoDB servers.
mongodb Fields
editMongoDB metrics.
dbstats Fields
editdbstats provides an overview of a particular mongo database. This document is most concerned with data volumes of a database.
mongodb.dbstats.avg_obj_size.bytes
edittype: long
format: bytes
mongodb.dbstats.collections
edittype: integer
mongodb.dbstats.data_size.bytes
edittype: long
format: bytes
mongodb.dbstats.db
edittype: keyword
mongodb.dbstats.file_size.bytes
edittype: long
format: bytes
mongodb.dbstats.index_size.bytes
edittype: long
format: bytes
mongodb.dbstats.indexes
edittype: long
mongodb.dbstats.num_extents
edittype: long
mongodb.dbstats.objects
edittype: long
mongodb.dbstats.storage_size.bytes
edittype: long
format: bytes
mongodb.dbstats.ns_size_mb.mb
edittype: long
mongodb.dbstats.data_file_version.major
edittype: long
mongodb.dbstats.data_file_version.minor
edittype: long
mongodb.dbstats.extent_free_list.num
edittype: long
mongodb.dbstats.extent_free_list.size.bytes
edittype: long
format: bytes
status Fields
editMongoDB server status metrics.
mongodb.status.version
edittype: keyword
Instance version.
mongodb.status.uptime.ms
edittype: long
Instance uptime in milliseconds.
mongodb.status.local_time
edittype: date
Local time as reported by the MongoDB instance.
mongodb.status.asserts.regular
edittype: long
Number of regular assertions produced by the server.
mongodb.status.asserts.warning
edittype: long
Number of warning assertions produced by the server.
mongodb.status.asserts.msg
edittype: long
Number of msg assertions produced by the server.
mongodb.status.asserts.user
edittype: long
Number of user assertions produced by the server.
mongodb.status.asserts.rollovers
edittype: long
Number of rollovers assertions produced by the server.
background_flushing Fields
editData about the process MongoDB uses to write data to disk. This data is only available for instances that use the MMAPv1 storage engine.
mongodb.status.background_flushing.flushes
edittype: long
A counter that collects the number of times the database has flushed all writes to disk.
mongodb.status.background_flushing.total.ms
edittype: long
The total number of milliseconds (ms) that the mongod processes have spent writing (i.e. flushing) data to disk. Because this is an absolute value, consider the value of flushes
and average_ms
to provide better context for this datum.
mongodb.status.background_flushing.average.ms
edittype: long
The average time spent flushing to disk per flush event.
mongodb.status.background_flushing.last.ms
edittype: long
The amount of time, in milliseconds, that the last flush operation took to complete.
mongodb.status.background_flushing.last_finished
edittype: date
A timestamp of the last completed flush operation.
connections Fields
editData regarding the current status of incoming connections and availability of the database server.
mongodb.status.connections.current
edittype: long
The number of connections to the database server from clients. This number includes the current shell session. Consider the value of available
to add more context to this datum.
mongodb.status.connections.available
edittype: long
The number of unused available incoming connections the database can provide.
mongodb.status.connections.total_created
edittype: long
A count of all incoming connections created to the server. This number includes connections that have since closed.
journaling Fields
editData about the journaling-related operations and performance. Journaling information only appears for mongod instances that use the MMAPv1 storage engine and have journaling enabled.
mongodb.status.journaling.commits
edittype: long
The number of transactions written to the journal during the last journal group commit interval.
mongodb.status.journaling.journaled.mb
edittype: long
The amount of data in megabytes (MB) written to journal during the last journal group commit interval.
mongodb.status.journaling.write_to_data_files.mb
edittype: long
The amount of data in megabytes (MB) written from journal to the data files during the last journal group commit interval.
mongodb.status.journaling.compression
edittype: long
The compression ratio of the data written to the journal.
mongodb.status.journaling.commits_in_write_lock
edittype: long
Count of the commits that occurred while a write lock was held. Commits in a write lock indicate a MongoDB node under a heavy write load and call for further diagnosis.
mongodb.status.journaling.early_commits
edittype: long
The number of times MongoDB requested a commit before the scheduled journal group commit interval.
times Fields
editInformation about the performance of the mongod instance during the various phases of journaling in the last journal group commit interval.
mongodb.status.journaling.times.dt.ms
edittype: long
The amount of time over which MongoDB collected the times data. Use this field to provide context to the other times field values.
mongodb.status.journaling.times.prep_log_buffer.ms
edittype: long
The amount of time spent preparing to write to the journal. Smaller values indicate better journal performance.
mongodb.status.journaling.times.write_to_journal.ms
edittype: long
The amount of time spent actually writing to the journal. File system speeds and device interfaces can affect performance.
mongodb.status.journaling.times.write_to_data_files.ms
edittype: long
The amount of time spent writing to data files after journaling. File system speeds and device interfaces can affect performance.
mongodb.status.journaling.times.remap_private_view.ms
edittype: long
The amount of time spent remapping copy-on-write memory mapped views. Smaller values indicate better journal performance.
mongodb.status.journaling.times.commits.ms
edittype: long
The amount of time spent for commits.
mongodb.status.journaling.times.commits_in_write_lock.ms
edittype: long
The amount of time spent for commits that occurred while a write lock was held.
extra_info Fields
editPlatform specific data.
mongodb.status.extra_info.heap_usage.bytes
edittype: long
format: bytes
The total size in bytes of heap space used by the database process. Only available on Unix/Linux.
mongodb.status.extra_info.page_faults
edittype: long
The total number of page faults that require disk operations. Page faults refer to operations that require the database server to access data that isn’t available in active memory.
network Fields
editPlatform specific data.
mongodb.status.network.in.bytes
edittype: long
format: bytes
The amount of network traffic, in bytes, received by this database.
mongodb.status.network.out.bytes
edittype: long
format: bytes
The amount of network traffic, in bytes, sent from this database.
mongodb.status.network.requests
edittype: long
The total number of requests received by the server.
opcounters Fields
editAn overview of database operations by type.
mongodb.status.opcounters.insert
edittype: long
The total number of insert operations received since the mongod instance last started.
mongodb.status.opcounters.query
edittype: long
The total number of queries received since the mongod instance last started.
mongodb.status.opcounters.update
edittype: long
The total number of update operations received since the mongod instance last started.
mongodb.status.opcounters.delete
edittype: long
The total number of delete operations received since the mongod instance last started.
mongodb.status.opcounters.getmore
edittype: long
The total number of getmore operations received since the mongod instance last started.
mongodb.status.opcounters.command
edittype: long
The total number of commands issued to the database since the mongod instance last started.
opcounters_replicated Fields
editAn overview of database replication operations by type.
mongodb.status.opcounters_replicated.insert
edittype: long
The total number of replicated insert operations received since the mongod instance last started.
mongodb.status.opcounters_replicated.query
edittype: long
The total number of replicated queries received since the mongod instance last started.
mongodb.status.opcounters_replicated.update
edittype: long
The total number of replicated update operations received since the mongod instance last started.
mongodb.status.opcounters_replicated.delete
edittype: long
The total number of replicated delete operations received since the mongod instance last started.
mongodb.status.opcounters_replicated.getmore
edittype: long
The total number of replicated getmore operations received since the mongod instance last started.
mongodb.status.opcounters_replicated.command
edittype: long
The total number of replicated commands issued to the database since the mongod instance last started.
memory Fields
editData about the current memory usage of the mongod server.
mongodb.status.memory.bits
edittype: long
Either 64 or 32, depending on which target architecture was specified during the mongod compilation process.
mongodb.status.memory.resident.mb
edittype: long
The amount of RAM, in megabytes (MB), currently used by the database process.
mongodb.status.memory.virtual.mb
edittype: long
The amount, in megabytes (MB), of virtual memory used by the mongod process.
mongodb.status.memory.mapped.mb
edittype: long
The amount of mapped memory, in megabytes (MB), used by the database. Because MongoDB uses memory-mapped files, this value is likely to be to be roughly equivalent to the total size of your database or databases.
mongodb.status.memory.mapped_with_journal.mb
edittype: long
The amount of mapped memory, in megabytes (MB), including the memory used for journaling.
mongodb.status.write_backs_queued
edittype: boolean
True when there are operations from a mongos instance queued for retrying.
mongodb.status.storage_engine.name
edittype: keyword
A string that represents the name of the current storage engine.
wired_tiger Fields
editStatistics about the WiredTiger storage engine.
concurrent_transactions Fields
editStatistics about the transactions currently in progress.
mongodb.status.wired_tiger.concurrent_transactions.write.out
edittype: long
Number of concurrent write transaction in progress.
mongodb.status.wired_tiger.concurrent_transactions.write.available
edittype: long
Number of concurrent write tickets available.
mongodb.status.wired_tiger.concurrent_transactions.write.total_tickets
edittype: long
Number of total write tickets.
mongodb.status.wired_tiger.concurrent_transactions.read.out
edittype: long
Number of concurrent read transaction in progress.
mongodb.status.wired_tiger.concurrent_transactions.read.available
edittype: long
Number of concurrent read tickets available.
mongodb.status.wired_tiger.concurrent_transactions.read.total_tickets
edittype: long
Number of total read tickets.
cache Fields
editStatistics about the cache and page evictions from the cache.
mongodb.status.wired_tiger.cache.maximum.bytes
edittype: long
format: bytes
Maximum cache size.
mongodb.status.wired_tiger.cache.used.bytes
edittype: long
format: bytes
Size in byte of the data currently in cache.
mongodb.status.wired_tiger.cache.dirty.bytes
edittype: long
format: bytes
Size in bytes of the dirty data in the cache.
mongodb.status.wired_tiger.cache.pages.read
edittype: long
Number of pages read into the cache.
mongodb.status.wired_tiger.cache.pages.write
edittype: long
Number of pages written from the cache.
mongodb.status.wired_tiger.cache.pages.evicted
edittype: long
Number of pages evicted from the cache.
log Fields
editStatistics about the write ahead log used by WiredTiger.
mongodb.status.wired_tiger.log.size.bytes
edittype: long
format: bytes
Total log size in bytes.
mongodb.status.wired_tiger.log.write.bytes
edittype: long
format: bytes
Number of bytes written into the log.
mongodb.status.wired_tiger.log.max_file_size.bytes
edittype: long
format: bytes
Maximum file size.
mongodb.status.wired_tiger.log.flushes
edittype: long
Number of flush operations.
mongodb.status.wired_tiger.log.writes
edittype: long
Number of write operations.
mongodb.status.wired_tiger.log.scans
edittype: long
Number of scan operations.
mongodb.status.wired_tiger.log.syncs
edittype: long
Number of sync operations.