Metrics

下面您可以找到此项目声明的所有指标的列表。

Below you can find a list of all metrics declared by this project.

Mongodb Command Observation

围绕 MongoDB 命令执行创建的计时器。

Timer created around a MongoDB command execution.

度量名称 spring.data.mongodb.command类型 timer

Metric name spring.data.mongodb.command. Type timer.

度量名称 spring.data.mongodb.command.active类型 long task timer

Metric name spring.data.mongodb.command.active. Type long task timer.

在 Observation 启动后添加的 KeyValues 可能会缺失于 *.active 指标。

KeyValues that are added after starting the Observation might be missing from the *.active metrics.

Micrometer 内部使用 nanoseconds 作为基本单位。但是,每个后端决定实际基本单位。(例如,Prometheus 使用秒)

Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)

封闭类的完全限定名称 org.springframework.data.mongodb.observability.MongoObservation

Fully qualified name of the enclosing class org.springframework.data.mongodb.observability.MongoObservation.

Table 1. Low cardinality Keys

Name

Description

db.connection_string (required)

MongoDB connection string.

db.mongodb.collection (required)

MongoDB collection name.

db.name (required)

MongoDB database name.

db.operation (required)

MongoDB command value.

db.system (required)

MongoDB database system.

db.user (required)

MongoDB user.

net.peer.name (required)

Name of the database host.

net.peer.port (required)

Logical remote port number.

net.sock.peer.addr (required)

Mongo peer address.

net.sock.peer.port (required)

Mongo peer port.

net.transport (required)

Network transport.

spring.data.mongodb.cluster_id (required)

MongoDB cluster identifier.