---
title: MongoDB fields
description: Metrics collected from MongoDB servers. MongoDB metrics. MongoDB collection statistics metrics. dbstats provides an overview of a particular mongo database...
url: https://www.elastic.co/docs/reference/beats/metricbeat/exported-fields-mongodb
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Stack: Generally available
---

# MongoDB fields
Metrics collected from MongoDB servers.

## mongodb

MongoDB metrics.

## collstats

MongoDB collection statistics metrics.
<definitions>
  <definition term="mongodb.collstats.db">
    Database name.
    type: keyword
  </definition>
  <definition term="mongodb.collstats.collection">
    Collection name.
    type: keyword
  </definition>
  <definition term="mongodb.collstats.name">
    Combination of database and collection name.
    type: keyword
  </definition>
  <definition term="mongodb.collstats.total.time.us">
    Total waiting time for locks in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.total.count">
    Total number of lock wait events.
    type: long
  </definition>
  <definition term="mongodb.collstats.lock.read.time.us">
    Time waiting for read locks in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.lock.read.count">
    Number of read lock wait events.
    type: long
  </definition>
  <definition term="mongodb.collstats.lock.write.time.us">
    Time waiting for write locks in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.lock.write.count">
    Number of write lock wait events.
    type: long
  </definition>
  <definition term="mongodb.collstats.queries.time.us">
    Time running queries in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.queries.count">
    Number of queries executed.
    type: long
  </definition>
  <definition term="mongodb.collstats.getmore.time.us">
    Time asking for more cursor rows in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.getmore.count">
    Number of times a cursor asked for more data.
    type: long
  </definition>
  <definition term="mongodb.collstats.insert.time.us">
    Time inserting new documents in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.insert.count">
    Number of document insert events.
    type: long
  </definition>
  <definition term="mongodb.collstats.update.time.us">
    Time updating documents in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.update.count">
    Number of document update events.
    type: long
  </definition>
  <definition term="mongodb.collstats.remove.time.us">
    Time deleting documents in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.remove.count">
    Number of document delete events.
    type: long
  </definition>
  <definition term="mongodb.collstats.commands.time.us">
    Time executing database commands in microseconds.
    type: long
  </definition>
  <definition term="mongodb.collstats.commands.count">
    Number of database commands executed.
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.size">
    The total uncompressed size in memory of all records in a collection.
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.count">
    The number of objects or documents in this collection.
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.avgObjSize">
    The average size of an object in the collection (in bytes).
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.storageSize">
    The total amount of storage allocated to this collection for document storage (in bytes).
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.totalIndexSize">
    The total size of all indexes (in bytes).
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.totalSize">
    The sum of the storageSize and totalIndexSize (in bytes).
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.max">
    Shows the maximum number of documents that may be present in a capped collection.
    type: long
  </definition>
  <definition term="mongodb.collstats.stats.stats.nindexes">
    The number of indexes on the collection. All collections have at least one index on the _id field.
    type: long
  </definition>
</definitions>


## dbstats

dbstats provides an overview of a particular mongo database. This document is most concerned with data volumes of a database.
<definitions>
  <definition term="mongodb.dbstats.avg_obj_size.bytes">
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.dbstats.collections">
    type: integer
  </definition>
  <definition term="mongodb.dbstats.data_size.bytes">
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.dbstats.db">
    type: keyword
  </definition>
  <definition term="mongodb.dbstats.file_size.bytes">
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.dbstats.index_size.bytes">
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.dbstats.indexes">
    type: long
  </definition>
  <definition term="mongodb.dbstats.num_extents">
    type: long
  </definition>
  <definition term="mongodb.dbstats.objects">
    type: long
  </definition>
  <definition term="mongodb.dbstats.storage_size.bytes">
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.dbstats.ns_size_mb.mb">
    type: long
  </definition>
  <definition term="mongodb.dbstats.data_file_version.major">
    type: long
  </definition>
  <definition term="mongodb.dbstats.data_file_version.minor">
    type: long
  </definition>
  <definition term="mongodb.dbstats.extent_free_list.num">
    type: long
  </definition>
  <definition term="mongodb.dbstats.extent_free_list.size.bytes">
    type: long
    format: bytes
  </definition>
</definitions>


## metrics

Statistics that reflect the current use and state of a running `mongod` instance for more information, take a look at [https://docs.mongodb.com/manual/reference/command/serverStatus/#serverstatus.metrics](https://docs.mongodb.com/manual/reference/command/serverStatus/#serverstatus.metrics)

## commands

Reports on the use of database commands. The fields in metrics.commands are the names of database commands and each value is a document that reports the total number of commands executed as well as the number of failed executions.
metrics.commands.<command>.failed shows the number of times <command> failed on this mongod. metrics.commands.<command>.total shows the number of times <command> executed on this mongod.
<definitions>
  <definition term="mongodb.metrics.commands.is_self.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.is_self.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.aggregate.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.aggregate.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.build_info.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.build_info.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.coll_stats.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.coll_stats.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.connection_pool_stats.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.connection_pool_stats.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.count.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.count.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.db_stats.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.db_stats.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.distinct.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.distinct.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.find.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.find.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_cmd_line_opts.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_cmd_line_opts.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_last_error.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_last_error.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_log.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_log.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_more.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_more.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_parameter.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.get_parameter.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.host_info.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.host_info.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.insert.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.insert.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.is_master.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.is_master.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.last_collections.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.last_collections.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.last_commands.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.last_commands.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.list_databased.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.list_databased.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.list_indexes.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.list_indexes.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.ping.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.ping.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.profile.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.profile.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_get_rbid.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_get_rbid.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_get_status.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_get_status.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_heartbeat.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_heartbeat.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_update_position.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.replset_update_position.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.server_status.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.server_status.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.update.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.update.total">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.whatsmyuri.failed">
    type: long
  </definition>
  <definition term="mongodb.metrics.commands.whatsmyuri.total">
    type: long
  </definition>
</definitions>


## cursor

Contains data regarding cursor state and use.
<definitions>
  <definition term="mongodb.metrics.cursor.timed_out">
    The total number of cursors that have timed out since the server process started.
    type: long
  </definition>
</definitions>


## open

Contains data regarding open cursors.
<definitions>
  <definition term="mongodb.metrics.cursor.open.no_timeout">
    The number of open cursors with the option DBQuery.Option.noTimeout set to prevent timeout.
    type: long
  </definition>
  <definition term="mongodb.metrics.cursor.open.pinned">
    The number of `pinned` open cursors.
    type: long
  </definition>
  <definition term="mongodb.metrics.cursor.open.total">
    The number of cursors that MongoDB is maintaining for clients.
    type: long
  </definition>
</definitions>


## document

Reflects document access and modification patterns.
<definitions>
  <definition term="mongodb.metrics.document.deleted">
    The total number of documents deleted.
    type: long
  </definition>
  <definition term="mongodb.metrics.document.inserted">
    The total number of documents inserted.
    type: long
  </definition>
  <definition term="mongodb.metrics.document.returned">
    The total number of documents returned by queries.
    type: long
  </definition>
  <definition term="mongodb.metrics.document.updated">
    The total number of documents updated.
    type: long
  </definition>
</definitions>


## get_last_error

Returns the error status of the preceding write operation on the current connection.
<definitions>
  <definition term="mongodb.metrics.get_last_error.write_wait.ms">
    The total amount of time in milliseconds that the mongod has spent performing getLastError operations with write concern (i.e. w) greater than 1.
    type: long
  </definition>
  <definition term="mongodb.metrics.get_last_error.write_wait.count">
    The total number of getLastError operations with a specified write concern (i.e. w) greater than 1.
    type: long
  </definition>
  <definition term="mongodb.metrics.get_last_error.write_timeouts">
    The number of times that write concern operations have timed out as a result of the wtimeout threshold to getLastError.
    type: long
  </definition>
</definitions>


## operation

Holds counters for several types of update and query operations that MongoDB handles using special operation types.
<definitions>
  <definition term="mongodb.metrics.operation.scan_and_order">
    The total number of queries that return sorted numbers that cannot perform the sort operation using an index.
    type: long
  </definition>
  <definition term="mongodb.metrics.operation.write_conflicts">
    The total number of queries that encountered write conflicts.
    type: long
  </definition>
</definitions>


## query_executor

Reports data from the query execution system.
<definitions>
  <definition term="mongodb.metrics.query_executor.scanned_indexes.count">
    The total number of index items scanned during queries and query-plan evaluation.
    type: long
  </definition>
  <definition term="mongodb.metrics.query_executor.scanned_documents.count">
    The total number of documents scanned during queries and query-plan evaluation.
    type: long
  </definition>
</definitions>


## replication

Reports metrics related to the replication process. metrics.replication appears on all mongod instances, even those that aren't members of replica sets.

## executor

Reports on various statistics for the replication executor.
<definitions>
  <definition term="mongodb.metrics.replication.executor.counters.event_created">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.event_wait">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.cancels">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.waits">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.scheduled.netcmd">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.scheduled.dbwork">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.scheduled.exclusive">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.scheduled.work_at">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.scheduled.work">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.counters.scheduled.failures">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.queues.in_progress.network">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.queues.in_progress.dbwork">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.queues.in_progress.exclusive">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.queues.sleepers">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.queues.ready">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.queues.free">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.unsignaled_events">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.event_waiters">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.executor.shutting_down">
    type: boolean
  </definition>
  <definition term="mongodb.metrics.replication.executor.network_interface">
    type: keyword
  </definition>
</definitions>


## apply

Reports on the application of operations from the replication oplog.
<definitions>
  <definition term="mongodb.metrics.replication.apply.attempts_to_become_secondary">
    type: long
  </definition>
</definitions>


## batches

Reports on the oplog application process on secondaries members of replica sets.
<definitions>
  <definition term="mongodb.metrics.replication.apply.batches.count">
    The total number of batches applied across all databases.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.apply.batches.time.ms">
    The total amount of time in milliseconds the mongod has spent applying operations from the oplog.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.apply.ops">
    The total number of oplog operations applied.
    type: long
  </definition>
</definitions>


## buffer

MongoDB buffers oplog operations from the replication sync source buffer before applying oplog entries in a batch. metrics.replication.buffer provides a way to track the oplog buffer.
<definitions>
  <definition term="mongodb.metrics.replication.buffer.count">
    The current number of operations in the oplog buffer.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.buffer.max_size.bytes">
    The maximum size of the buffer. This value is a constant setting in the mongod, and is not configurable.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.buffer.size.bytes">
    The current size of the contents of the oplog buffer.
    type: long
  </definition>
</definitions>


## initial_sync

Report initial sync status
<definitions>
  <definition term="mongodb.metrics.replication.initial_sync.completed">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.initial_sync.failed_attempts">
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.initial_sync.failures">
    type: long
  </definition>
</definitions>


## network

Reports network use by the replication process.
<definitions>
  <definition term="mongodb.metrics.replication.network.bytes">
    The total amount of data read from the replication sync source.
    type: long
  </definition>
</definitions>


## getmores

Reports on the getmore operations, which are requests for additional results from the oplog cursor as part of the oplog replication process.
<definitions>
  <definition term="mongodb.metrics.replication.network.getmores.count">
    The total number of getmore operations
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.network.getmores.time.ms">
    The total amount of time required to collect data from getmore operations.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.network.ops">
    The total number of operations read from the replication source.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.network.reders_created">
    The total number of oplog query processes created.
    type: long
  </definition>
</definitions>


## preload

Reports on the `pre-fetch` stage, where MongoDB loads documents and indexes into RAM to improve replication throughput.

## docs

Reports on the documents loaded into memory during the pre-fetch stage.
<definitions>
  <definition term="mongodb.metrics.replication.preload.docs.count">
    The total number of documents loaded during the pre-fetch stage of replication.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.preload.docs.time.ms">
    type: long
  </definition>
</definitions>


## indexes

Reports on the index items loaded into memory during the pre-fetch stage of replication.
<definitions>
  <definition term="mongodb.metrics.replication.preload.indexes.count">
    The total number of index entries loaded by members before updating documents as part of the pre-fetch stage of replication.
    type: long
  </definition>
  <definition term="mongodb.metrics.replication.preload.indexes.time.ms">
    The total amount of time, in milliseconds, spent loading index entries as part of the pre-fetch stage of replication.
    type: long
  </definition>
  <definition term="mongodb.metrics.storage.free_list.search.bucket_exhausted">
    The number of times that mongod has checked the free list without finding a suitably large record allocation.
    type: long
  </definition>
  <definition term="mongodb.metrics.storage.free_list.search.requests">
    The number of times mongod has searched for available record allocations.
    type: long
  </definition>
  <definition term="mongodb.metrics.storage.free_list.search.scanned">
    The number of available record allocations mongod has searched.
    type: long
  </definition>
</definitions>


## ttl

Reports on the operation of the resource use of the ttl index process.
<definitions>
  <definition term="mongodb.metrics.ttl.deleted_documents.count">
    The total number of documents deleted from collections with a ttl index.
    type: long
  </definition>
  <definition term="mongodb.metrics.ttl.passes.count">
    The number of times the background process removes documents from collections with a ttl index.
    type: long
  </definition>
</definitions>


## replstatus

replstatus provides an overview of replica set status.

## oplog

oplog provides an overview of replication oplog status, which is retrieved from db.getReplicationInfo().
<definitions>
  <definition term="mongodb.replstatus.oplog.size.allocated">
    The total amount of space used by the replstatus in bytes.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.replstatus.oplog.size.used">
    total amount of space allocated to the replstatus in bytes.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.replstatus.oplog.first.timestamp">
    Timestamp of the first (i.e. earliest) operation in the replstatus
    type: long
  </definition>
  <definition term="mongodb.replstatus.oplog.last.timestamp">
    Timestamp of the last (i.e. latest) operation in the replstatus
    type: long
  </definition>
  <definition term="mongodb.replstatus.oplog.window">
    The difference between the first and last operation in the replstatus.
    type: long
  </definition>
  <definition term="mongodb.replstatus.set_name">
    The name of the replica set.
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.server_date">
    Reflects the current time according to the server that processed the replSetGetStatus command.
    type: date
  </definition>
  <definition term="mongodb.replstatus.optimes.last_committed">
    Information, from the viewpoint of this member, regarding the most recent operation that has been written to a majority of replica set members.
    type: long
  </definition>
  <definition term="mongodb.replstatus.optimes.applied">
    Information, from the viewpoint of this member, regarding the most recent operation that has been applied to this member of the replica set.
    type: long
  </definition>
  <definition term="mongodb.replstatus.optimes.durable">
    Information, from the viewpoint of this member, regarding the most recent operation that has been written to the journal of this member of the replica set.
    type: long
  </definition>
</definitions>


## lag

Delay between a write operation on the primary and its copy to a secondary
<definitions>
  <definition term="mongodb.replstatus.lag.max">
    Difference between optime of primary and slowest secondary
    type: long
    format: duration
  </definition>
  <definition term="mongodb.replstatus.lag.min">
    Difference between optime of primary and fastest secondary
    type: long
    format: duration
  </definition>
</definitions>


## headroom

Difference between the primary's oplog window and the replication lag of the secondary
<definitions>
  <definition term="mongodb.replstatus.headroom.max">
    Difference between primary's oplog window and the replication lag of the fastest secondary
    type: long
    format: duration
  </definition>
  <definition term="mongodb.replstatus.headroom.min">
    Difference between primary's oplog window and the replication lag of the slowest secondary
    type: long
    format: duration
  </definition>
</definitions>


## members

Provides information about members of replica set grouped by their state
<definitions>
  <definition term="mongodb.replstatus.members.primary.host">
    Host address of the primary
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.primary.optime">
    Optime of primary
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.secondary.hosts">
    List of secondary hosts
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.secondary.optimes">
    Optimes of secondaries
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.secondary.count">
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.recovering.hosts">
    List of recovering members hosts
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.recovering.count">
    Count of members in the `recovering` state
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.unknown.hosts">
    List of members' hosts in the `unknown` state
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.unknown.count">
    Count of members with `unknown` state
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.startup2.hosts">
    List of initializing members hosts
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.startup2.count">
    Count of members in the `startup2` state
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.arbiter.hosts">
    List of arbiters hosts
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.arbiter.count">
    Count of arbiters
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.down.hosts">
    List of `down` members hosts
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.down.count">
    Count of `down` members
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.rollback.hosts">
    List of members in the `rollback` state
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.rollback.count">
    Count of members in the `rollback` state
    type: long
  </definition>
  <definition term="mongodb.replstatus.members.unhealthy.hosts">
    List of members' hosts with healthy = false
    type: keyword
  </definition>
  <definition term="mongodb.replstatus.members.unhealthy.count">
    Count of unhealthy members
    type: long
  </definition>
</definitions>


## status

MongoDB server status metrics.
<definitions>
  <definition term="mongodb.status.version">
    Instance version.
    type: alias
    alias to: service.version
  </definition>
  <definition term="mongodb.status.process">
    The current MongoDB process. Possible values are mongos or mongod.
    type: alias
    alias to: process.name
  </definition>
  <definition term="mongodb.status.uptime.ms">
    Instance uptime in milliseconds.
    type: long
  </definition>
  <definition term="mongodb.status.local_time">
    Local time as reported by the MongoDB instance.
    type: date
  </definition>
  <definition term="mongodb.status.asserts.regular">
    Number of regular assertions produced by the server.
    type: long
  </definition>
  <definition term="mongodb.status.asserts.warning">
    Number of warning assertions produced by the server.
    type: long
  </definition>
  <definition term="mongodb.status.asserts.msg">
    Number of msg assertions produced by the server.
    type: long
  </definition>
  <definition term="mongodb.status.asserts.user">
    Number of user assertions produced by the server.
    type: long
  </definition>
  <definition term="mongodb.status.asserts.rollovers">
    Number of rollovers assertions produced by the server.
    type: long
  </definition>
</definitions>


## connections

Data regarding the current status of incoming connections and availability of the database server.
<definitions>
  <definition term="mongodb.status.connections.current">
    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.
    type: long
  </definition>
  <definition term="mongodb.status.connections.available">
    The number of unused available incoming connections the database can provide.
    type: long
  </definition>
  <definition term="mongodb.status.connections.total_created">
    A count of all incoming connections created to the server. This number includes connections that have since closed.
    type: long
  </definition>
</definitions>


## extra_info

Platform specific data.
<definitions>
  <definition term="mongodb.status.extra_info.heap_usage.bytes">
    The total size in bytes of heap space used by the database process. Only available on Unix/Linux.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.extra_info.page_faults">
    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.
    type: long
  </definition>
</definitions>


## global_lock

Reports on lock state of the database.
<definitions>
  <definition term="mongodb.status.global_lock.total_time.us">
    The time, in microseconds, since the database last started and created the globalLock. This is roughly equivalent to total server uptime.
    type: long
  </definition>
</definitions>


## current_queue

The number of operations queued because of a lock.
<definitions>
  <definition term="mongodb.status.global_lock.current_queue.total">
    The total number of operations queued waiting for the lock (i.e., the sum of current_queue.readers and current_queue.writers).
    type: long
  </definition>
  <definition term="mongodb.status.global_lock.current_queue.readers">
    The number of operations that are currently queued and waiting for the read lock.
    type: long
  </definition>
  <definition term="mongodb.status.global_lock.current_queue.writers">
    The number of operations that are currently queued and waiting for the write lock.
    type: long
  </definition>
</definitions>


## active_clients

The number of connected clients and the read and write operations performed by these clients.
<definitions>
  <definition term="mongodb.status.global_lock.active_clients.total">
    Total number of the active client connections performing read or write operations.
    type: long
  </definition>
  <definition term="mongodb.status.global_lock.active_clients.readers">
    The number of the active client connections performing read operations.
    type: long
  </definition>
  <definition term="mongodb.status.global_lock.active_clients.writers">
    The number of the active client connections performing write operations.
    type: long
  </definition>
</definitions>


## locks

A document that reports for each lock <type>, data on lock <mode>s. The possible lock <type>s are global, database, collection, metadata and oplog. The possible <mode>s are r, w, R and W which respresent shared, exclusive, intent shared and intent exclusive.
locks.<type>.acquire.count.<mode> shows the number of times the lock was acquired in the specified mode. locks.<type>.wait.count.<mode> shows the number of times the locks.acquireCount lock acquisitions encountered waits because the locks were held in a conflicting mode. locks.<type>.wait.us.<mode> shows the cumulative wait time in microseconds for the lock acquisitions. locks.<type>.deadlock.count.<mode> shows the number of times the lock acquisitions encountered deadlocks.
<definitions>
  <definition term="mongodb.status.locks.global.acquire.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.acquire.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.acquire.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.acquire.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.us.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.us.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.us.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.wait.us.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.deadlock.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.deadlock.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.deadlock.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.global.deadlock.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.acquire.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.acquire.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.acquire.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.acquire.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.us.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.us.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.us.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.wait.us.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.deadlock.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.deadlock.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.deadlock.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.database.deadlock.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.acquire.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.acquire.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.acquire.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.acquire.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.us.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.us.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.us.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.wait.us.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.deadlock.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.deadlock.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.deadlock.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.collection.deadlock.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.acquire.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.acquire.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.acquire.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.acquire.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.us.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.us.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.us.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.wait.us.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.deadlock.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.deadlock.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.deadlock.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.meta_data.deadlock.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.acquire.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.acquire.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.acquire.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.acquire.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.count.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.us.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.us.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.us.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.wait.us.W">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.deadlock.count.r">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.deadlock.count.w">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.deadlock.count.R">
    type: long
  </definition>
  <definition term="mongodb.status.locks.oplog.deadlock.count.W">
    type: long
  </definition>
</definitions>


## network

Platform specific data.
<definitions>
  <definition term="mongodb.status.network.in.bytes">
    The amount of network traffic, in bytes, received by this database.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.network.out.bytes">
    The amount of network traffic, in bytes, sent from this database.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.network.requests">
    The total number of requests received by the server.
    type: long
  </definition>
</definitions>


## ops.latencies

Operation latencies for the database as a whole. Only mongod instances report this metric.
<definitions>
  <definition term="mongodb.status.ops.latencies.reads.latency">
    Total combined latency in microseconds.
    type: long
  </definition>
  <definition term="mongodb.status.ops.latencies.reads.count">
    Total number of read operations performed on the collection since startup.
    type: long
  </definition>
  <definition term="mongodb.status.ops.latencies.writes.latency">
    Total combined latency in microseconds.
    type: long
  </definition>
  <definition term="mongodb.status.ops.latencies.writes.count">
    Total number of write operations performed on the collection since startup.
    type: long
  </definition>
  <definition term="mongodb.status.ops.latencies.commands.latency">
    Total combined latency in microseconds.
    type: long
  </definition>
  <definition term="mongodb.status.ops.latencies.commands.count">
    Total number of commands performed on the collection since startup.
    type: long
  </definition>
</definitions>


## ops.counters

An overview of database operations by type.
<definitions>
  <definition term="mongodb.status.ops.counters.insert">
    The total number of insert operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.counters.query">
    The total number of queries received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.counters.update">
    The total number of update operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.counters.delete">
    The total number of delete operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.counters.getmore">
    The total number of getmore operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.counters.command">
    The total number of commands issued to the database since the mongod instance last started.
    type: long
  </definition>
</definitions>


## ops.replicated

An overview of database replication operations by type.
<definitions>
  <definition term="mongodb.status.ops.replicated.insert">
    The total number of replicated insert operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.replicated.query">
    The total number of replicated queries received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.replicated.update">
    The total number of replicated update operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.replicated.delete">
    The total number of replicated delete operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.replicated.getmore">
    The total number of replicated getmore operations received since the mongod instance last started.
    type: long
  </definition>
  <definition term="mongodb.status.ops.replicated.command">
    The total number of replicated commands issued to the database since the mongod instance last started.
    type: long
  </definition>
</definitions>


## memory

Data about the current memory usage of the mongod server.
<definitions>
  <definition term="mongodb.status.memory.bits">
    Either 64 or 32, depending on which target architecture was specified during the mongod compilation process.
    type: long
  </definition>
  <definition term="mongodb.status.memory.resident.mb">
    The amount of RAM, in megabytes (MB), currently used by the database process.
    type: long
  </definition>
  <definition term="mongodb.status.memory.virtual.mb">
    The amount, in megabytes (MB), of virtual memory used by the mongod process.
    type: long
  </definition>
  <definition term="mongodb.status.memory.mapped.mb">
    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.
    type: long
  </definition>
  <definition term="mongodb.status.memory.mapped_with_journal.mb">
    The amount of mapped memory, in megabytes (MB), including the memory used for journaling.
    type: long
  </definition>
  <definition term="mongodb.status.write_backs_queued">
    True when there are operations from a mongos instance queued for retrying.
    type: boolean
  </definition>
  <definition term="mongodb.status.storage_engine.name">
    A string that represents the name of the current storage engine.
    type: keyword
  </definition>
</definitions>


## wired_tiger

Statistics about the WiredTiger storage engine.

## concurrent_transactions

Statistics about the transactions currently in progress.
<definitions>
  <definition term="mongodb.status.wired_tiger.concurrent_transactions.write.out">
    Number of concurrent write transaction in progress.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.concurrent_transactions.write.available">
    Number of concurrent write tickets available.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.concurrent_transactions.write.total_tickets">
    Number of total write tickets.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.concurrent_transactions.read.out">
    Number of concurrent read transaction in progress.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.concurrent_transactions.read.available">
    Number of concurrent read tickets available.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.concurrent_transactions.read.total_tickets">
    Number of total read tickets.
    type: long
  </definition>
</definitions>


## cache

Statistics about the cache and page evictions from the cache.
<definitions>
  <definition term="mongodb.status.wired_tiger.cache.maximum.bytes">
    Maximum cache size.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.wired_tiger.cache.used.bytes">
    Size in byte of the data currently in cache.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.wired_tiger.cache.dirty.bytes">
    Size in bytes of the dirty data in the cache.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.wired_tiger.cache.pages.read">
    Number of pages read into the cache.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.cache.pages.write">
    Number of pages written from the cache.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.cache.pages.evicted">
    Number of pages evicted from the cache.
    type: long
  </definition>
</definitions>


## log

Statistics about the write ahead log used by WiredTiger.
<definitions>
  <definition term="mongodb.status.wired_tiger.log.size.bytes">
    Total log size in bytes.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.wired_tiger.log.write.bytes">
    Number of bytes written into the log.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.wired_tiger.log.max_file_size.bytes">
    Maximum file size.
    type: long
    format: bytes
  </definition>
  <definition term="mongodb.status.wired_tiger.log.flushes">
    Number of flush operations.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.log.writes">
    Number of write operations.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.log.scans">
    Number of scan operations.
    type: long
  </definition>
  <definition term="mongodb.status.wired_tiger.log.syncs">
    Number of sync operations.
    type: long
  </definition>
</definitions>


## background_flushing

Data about the process MongoDB uses to write data to disk. This data is only available for instances that use the MMAPv1 storage engine.
<definitions>
  <definition term="mongodb.status.background_flushing.flushes">
    A counter that collects the number of times the database has flushed all writes to disk.
    type: long
  </definition>
  <definition term="mongodb.status.background_flushing.total.ms">
    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.
    type: long
  </definition>
  <definition term="mongodb.status.background_flushing.average.ms">
    The average time spent flushing to disk per flush event.
    type: long
  </definition>
  <definition term="mongodb.status.background_flushing.last.ms">
    The amount of time, in milliseconds, that the last flush operation took to complete.
    type: long
  </definition>
  <definition term="mongodb.status.background_flushing.last_finished">
    A timestamp of the last completed flush operation.
    type: date
  </definition>
</definitions>


## journaling

Data about the journaling-related operations and performance. Journaling information only appears for mongod instances that use the MMAPv1 storage engine and have journaling enabled.
<definitions>
  <definition term="mongodb.status.journaling.commits">
    The number of transactions written to the journal during the last journal group commit interval.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.journaled.mb">
    The amount of data in megabytes (MB) written to journal during the last journal group commit interval.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.write_to_data_files.mb">
    The amount of data in megabytes (MB) written from journal to the data files during the last journal group commit interval.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.compression">
    The compression ratio of the data written to the journal.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.commits_in_write_lock">
    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.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.early_commits">
    The number of times MongoDB requested a commit before the scheduled journal group commit interval.
    type: long
  </definition>
</definitions>


## times

Information about the performance of the mongod instance during the various phases of journaling in the last journal group commit interval.
<definitions>
  <definition term="mongodb.status.journaling.times.dt.ms">
    The amount of time over which MongoDB collected the times data. Use this field to provide context to the other times field values.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.times.prep_log_buffer.ms">
    The amount of time spent preparing to write to the journal. Smaller values indicate better journal performance.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.times.write_to_journal.ms">
    The amount of time spent actually writing to the journal. File system speeds and device interfaces can affect performance.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.times.write_to_data_files.ms">
    The amount of time spent writing to data files after journaling. File system speeds and device interfaces can affect performance.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.times.remap_private_view.ms">
    The amount of time spent remapping copy-on-write memory mapped views. Smaller values indicate better journal performance.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.times.commits.ms">
    The amount of time spent for commits.
    type: long
  </definition>
  <definition term="mongodb.status.journaling.times.commits_in_write_lock.ms">
    The amount of time spent for commits that occurred while a write lock was held.
    type: long
  </definition>
</definitions>