The following metrics are emitted by default. Each of them can be disabled by applying the following configuration:
metrics :
<metric_name> :
enabled : false
The number of cache operations of the instance.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{operations}
Sum
Int
Cumulative
true
Name
Description
Values
type
The result of a cache request.
Str: hit
, miss
The number of collections.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{collections}
Sum
Int
Cumulative
false
The number of connections.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{connections}
Sum
Int
Cumulative
false
Name
Description
Values
type
The status of the connection.
Str: active
, available
, current
The number of open cursors maintained for clients.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{cursors}
Sum
Int
Cumulative
false
mongodb.cursor.timeout.count
The number of cursors that have timed out.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{cursors}
Sum
Int
Cumulative
false
The size of the collection. Data compression does not affect this value.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
By
Sum
Int
Cumulative
false
The number of existing databases.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{databases}
Sum
Int
Cumulative
false
mongodb.document.operation.count
The number of document operations executed.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{documents}
Sum
Int
Cumulative
false
Name
Description
Values
operation
The MongoDB operation being counted.
Str: insert
, query
, update
, delete
, getmore
, command
The number of extents.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{extents}
Sum
Int
Cumulative
false
The time the global lock has been held.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
ms
Sum
Int
Cumulative
true
mongodb.index.access.count
The number of times an index has been accessed.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{accesses}
Sum
Int
Cumulative
false
Name
Description
Values
collection
The name of a collection.
Any Str
The number of indexes.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{indexes}
Sum
Int
Cumulative
false
Sum of the space allocated to all indexes in the database, including free index space.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
By
Sum
Int
Cumulative
false
The amount of memory used.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
By
Sum
Int
Cumulative
false
Name
Description
Values
type
The type of memory used.
Str: resident
, virtual
mongodb.network.io.receive
The number of bytes received.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
By
Sum
Int
Cumulative
false
mongodb.network.io.transmit
The number of by transmitted.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
By
Sum
Int
Cumulative
false
mongodb.network.request.count
The number of requests received by the server.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{requests}
Sum
Int
Cumulative
false
The number of objects.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{objects}
Sum
Int
Cumulative
false
The number of operations executed.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{operations}
Sum
Int
Cumulative
true
Name
Description
Values
operation
The MongoDB operation being counted.
Str: insert
, query
, update
, delete
, getmore
, command
The total time spent performing operations.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
ms
Sum
Int
Cumulative
true
Name
Description
Values
operation
The MongoDB operation being counted.
Str: insert
, query
, update
, delete
, getmore
, command
The total number of active sessions.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{sessions}
Sum
Int
Cumulative
false
The total amount of storage allocated to this collection.
If collection data is compressed it reflects the compressed size.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
By
Sum
Int
Cumulative
true
The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:
metrics :
<metric_name> :
enabled : true
The health status of the server.
A value of '1' indicates healthy. A value of '0' indicates unhealthy.
Unit
Metric Type
Value Type
1
Gauge
Int
mongodb.lock.acquire.count
Number of times the lock was acquired in the specified mode.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{count}
Sum
Int
Cumulative
true
Name
Description
Values
lock_type
The Resource over which the Lock controls access
Str: parallel_batch_write_mode
, replication_state_transition
, global
, database
, collection
, mutex
, metadata
, oplog
lock_mode
The mode of Lock which denotes the degree of access
Str: shared
, exclusive
, intent_shared
, intent_exclusive
mongodb.lock.acquire.time
Cumulative wait time for the lock acquisitions.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
microseconds
Sum
Int
Cumulative
true
Name
Description
Values
lock_type
The Resource over which the Lock controls access
Str: parallel_batch_write_mode
, replication_state_transition
, global
, database
, collection
, mutex
, metadata
, oplog
lock_mode
The mode of Lock which denotes the degree of access
Str: shared
, exclusive
, intent_shared
, intent_exclusive
mongodb.lock.acquire.wait_count
Number of times the lock acquisitions encountered waits because the locks were held in a conflicting mode.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{count}
Sum
Int
Cumulative
true
Name
Description
Values
lock_type
The Resource over which the Lock controls access
Str: parallel_batch_write_mode
, replication_state_transition
, global
, database
, collection
, mutex
, metadata
, oplog
lock_mode
The mode of Lock which denotes the degree of access
Str: shared
, exclusive
, intent_shared
, intent_exclusive
mongodb.lock.deadlock.count
Number of times the lock acquisitions encountered deadlocks.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{count}
Sum
Int
Cumulative
true
Name
Description
Values
lock_type
The Resource over which the Lock controls access
Str: parallel_batch_write_mode
, replication_state_transition
, global
, database
, collection
, mutex
, metadata
, oplog
lock_mode
The mode of Lock which denotes the degree of access
Str: shared
, exclusive
, intent_shared
, intent_exclusive
mongodb.operation.latency.time
The latency of operations.
Unit
Metric Type
Value Type
us
Gauge
Int
Name
Description
Values
operation
The MongoDB operation with regards to latency
Str: read
, write
, command
mongodb.operation.repl.count
The number of replicated operations executed.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
{operations}
Sum
Int
Cumulative
true
Name
Description
Values
operation
The MongoDB operation being counted.
Str: insert
, query
, update
, delete
, getmore
, command
The amount of time that the server has been running.
Unit
Metric Type
Value Type
Aggregation Temporality
Monotonic
ms
Sum
Int
Cumulative
true
Name
Description
Values
Enabled
database
The name of a database.
Any Str
true
server.address
The address of the MongoDB host.
Any Str
true
server.port
The port of the MongoDB host.
Any Int
false