对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

监控实时性能

仅在 M10+ 集群上可用

Real-Time Performance Panel (RTPP) 监视并显示当前网络流量、集群中托管 MongoDB 的计算机上的数据库操作以及有关主机的硬件统计信息。使用 RTPP 直观地识别相关数据库操作、评估查询执行时间和扫描的文档与返回的文档的比率、监控网络负载和吞吐量,以及发现副本集的从节点上潜在的复制延迟。

RTPP displays data from the primary member of each replica set. For sharded clusters, RTPP shows data from the primary of each shard.

注意

如果工作负载触发的 db.currentOp() 输出大于 RTPP 最大大小(每个示例4 MB),则 RTPP 可能无法工作。

要为项目启用或禁用 Real-Time Performance Panel,您必须拥有 Project Owner 访问权限。拥有 Organization Owner 访问权限的用户必须将自己作为 Project Owner 添加到项目中。

要在实时性能面板中查看实时性能,您必须拥有项目的 Project Read Only、Project Observability Viewer、Project Data Access Read Only、Project Data Access Read/Write、Project Data Access Admin 或 Project Real Time Performance Operator访问权限。

Real-Time Performance Panel 默认启用。要为某项目禁用或启用 Real-Time Performance Panel:

1
  1. 如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。

  2. 如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。

  3. 在侧边栏中,单击 图标 Project Overview 旁边的图标。

显示项目设置页面。

2

要查看实时性能面板:

1
  1. 如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。

  2. 如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。

  3. 在侧边栏中,单击 Database 标题下的 Clusters。

会显示集群页面。

2

如果副本集是分片集群的一部分,请先单击包含副本集的分片集群。

3
4

Atlas 将数据显示为图表。点击 Table 以表格形式查看数据。

5
图表/位置
说明

Connections, Network In, Network Out (面板顶部)

Displays the number of current connections to the machine hosting MongoDB and the number of inbound and outbound bytes as reported by mongostat.

CPU, Disk IOPS, and Sys Mem (面板顶部)

显示托管 MongoDB 的计算机当前 CPU 使用率、磁盘每秒读写次数以及总物理内存使用量(不包括缓冲区和交换空间)。

Operations

Displays the number of operations as reported by mongostat.

Query Execution Times

Displays latency statistics for current read requests, write requests, and other database commands. Available in MongoDB 3.6 or later. See opLatencies at serverStatus for more information.

在 Atlas Infinite 集群上,这些指标描述的是计算节点,而不是存储层。要了解更多信息,请参阅 MongoDB Atlas Infinite:架构。

Query Targeting

显示扫描的文档和对象与当前查询中返回的文档和对象的比率。这些统计信息可用于确定查询是否以及如何使用索引。更多信息,请参阅分析查询性能。

The change streams cursors that the MongoDB Search process (mongot) uses to keep MongoDB Search indexes updated can contribute to the query targeting ratio and trigger query targeting alerts if the ratio is high.

Reads & Writes

Displays the number of active reads, queued reads, active writes, and queued writes as reported by mongostat.

Replication Lag

Available only for secondary members of a replica set. Displays the time required to replicate operations from the primary to the secondary members of a replica set. See Replica Set Secondary Members for more information.

Hottest Collections

Displays the collections with the most operations as reported by mongotop. For each hot collection, the table also displays the Utilization Percent for the collection.

Utilization Percent is calculated from the read and write times as reported by mongotop during a sample period. Specifically, the Utilization Percent is the percentage (rounded to the nearest 0.1%) of the read and write times for a collection relative to the read and write times for all collections in the deployment during the sample period. If no read and write operation occur during this period, the Utilization Percent will be 0%.

最热集合与图表中显示的最新时间相对应。也就是说,如果显示器正在运行(即未暂停),这些集合与当前时间戳下的最热集合相对应。如果显示暂停,则集合与暂停时的最热集合相对应。

如果已为某个集合启用了可查询加密,则 RTPP 不会在此位置显示该集合。Atlas 编辑这些信息。

Slowest Operations

显示由 db.currentOp() 报告的最慢操作。

这些操作与图表中显示的最新时间相对应。也就是说,如果显示器正在运行(即未暂停),这些操作与当前时间戳下最慢的操作相对应。如果显示暂停,则操作对应于暂停时最慢的操作。

Select one of the operations to open the Operation Details panel, where you can terminate the selected operation using the Kill Op button. The Kill Op button issues the db.killOp() method on the selected operation.

要使用 Kill Op 按钮,您必须对项目具有 Project Owner、Project Data Access Admin 或 Project Real Time Performance Operator 访问权限。

If you have Queryable Encryption enabled for a collection, the RTPP hides the JSON view of the query if it involves encrypted fields. Atlas redacts this information.

如果您暂停实时性能面板的 Graph 视图,则可以将鼠标悬停在折线图上,查看其在特定时刻的确切值,以及最慢的操作和最热的集合。

暂停性能面板不会影响基础数据的集合。当您恢复 Graph(图表)视图时,折线图将从空显示重新开始。

单击 以隐藏或显示表中的字段。

字段
说明
Commands
Queries
Updates
Deletes
Inserts
GetMores

Displays the number of the specified operations (commands, queries, etc.) as reported by mongostat.

Time / Read
Time / Write
Time / Command

Displays latency statistics for current read requests, write requests, and other database commands. To learn more, see opLatencies in serverStatus.

在 Atlas Infinite 集群上,这些指标描述的是计算节点,而不是存储层。要了解更多信息,请参阅 MongoDB Atlas Infinite:架构。

Scanned / Returned
Scanned Objects / Returned

Displays the ratio of documents and objects scanned to documents and objects returned in current queries. These statistics are useful in determining if and how a query uses an index. To learn more, see Analyze Query Performance.

Active Readers
Active Writers
Queued Readers
Queued Writers

Displays the number of active reads, queued reads, active writes, and queued writes as reported by mongostat.

Lag Time

Available only for secondary members of a replica set. Displays the time required to replicate operations from the primary to the secondary members of a replica set. To learn more, see Replica Set Secondary Members.

CPU
Disk IOPS
Sys Mem

显示托管 MongoDB 的计算机当前 CPU 使用率、磁盘每秒读写次数以及总物理内存使用量(不包括缓冲区和交换空间)。

Connections
Bytes In
Bytes Out

Displays the number of current connections to the machine hosting MongoDB and the number of inbound and outbound bytes as reported by mongostat.