仅在 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:
在 Atlas 中,转到 Project Settings(项目设置)页面。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。
如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。
在侧边栏中,单击 图标 Project Overview 旁边的图标。
显示项目设置页面。
访问实时性能面板
要查看实时性能面板:
AtlasGoClusters在Atlas中,Go项目的 页面。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含所需项目的组织。
如果尚未显示,请从导航栏的Projects菜单中选择所需的项目。
在侧边栏中,单击 Database 标题下的 Clusters。
会显示集群页面。
图形视图
图表/位置 | 说明 |
|---|---|
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 |
CPU, Disk IOPS, and Sys Mem (面板顶部) | 显示托管 MongoDB 的计算机当前 CPU 使用率、磁盘每秒读写次数以及总物理内存使用量(不包括缓冲区和交换空间)。 |
Operations | Displays the number of operations as reported by |
Query Execution Times | Displays latency statistics for current read requests, write requests, and other database commands. Available in MongoDB 3.6 or later. See 在 Atlas Infinite 集群上,这些指标描述的是计算节点,而不是存储层。要了解更多信息,请参阅 MongoDB Atlas Infinite:架构。 |
Query Targeting | 显示扫描的文档和对象与当前查询中返回的文档和对象的比率。这些统计信息可用于确定查询是否以及如何使用索引。更多信息,请参阅分析查询性能。 The change streams cursors that the MongoDB Search process ( |
Reads & Writes | Displays the number of active reads, queued reads, active writes, and queued writes as reported by |
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 Utilization Percent is calculated from the read and write times as reported by 最热集合与图表中显示的最新时间相对应。也就是说,如果显示器正在运行(即未暂停),这些集合与当前时间戳下的最热集合相对应。如果显示暂停,则集合与暂停时的最热集合相对应。 如果已为某个集合启用了可查询加密,则 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 按钮,您必须对项目具有 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 |
Time / Read Time / Write Time / Command | Displays latency statistics for current read requests, write requests, and other database commands. To learn more, see 在 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 |
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 |