AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

リアルタイム メトリクスの表示

注意

アベイラビリティーCloud Managerは、オートメーションが管理するMongoDB配置のリアルタイム メトリクスを表示できます。 リアルタイム データの収集には MongoDB Agent が必要です。

Cloud Manager supports real-time metrics for mongod (replica sets and shards) and mongos processes.

リアルタイム メトリクスを表示するには、目的の配置のMetricsボタンをクリックし、次にReal Timeをクリックします。

配置メトリクスを監視してパフォーマンスの問題を特定し、現在の配置が要件を満たしているかどうかを判断します。 配置をモニタリングするために使用できるメトリクスの詳細については、「利用可能なメトリクスの確認 」を参照してください。

この機能にアクセスするには、 Project OwnerまたはProject Data Access Admin Cloud Manager ユーザー ロールが必要です。

右上隅の をクリックすると、 TableまたはGraphのメトリクスを表示できます。

注意

必要な特権

プロジェクトでReal-Time Performance Panelを有効にするには、プロジェクトのProject Ownerロールが必要です。

Cloud Manager では、デフォルトでリアルタイム パフォーマンス パネルが有効になります。 この設定を切り替えるには:

1
  1. まだ表示されていない場合は、希望するプロジェクトを含む組織を選択しますナビゲーション バーのOrganizationsメニュー

  2. まだ表示されていない場合は、ナビゲーション バーのProjectsメニューから目的のプロジェクトを選択します。

  3. サイドバーで、Project Settings をクリックします。

    [ Project Settings ]ページが表示されます。

2
フィールド
表示
Commands
Queries
Updates
Deletes
Inserts
GetMores

Number of the specified operations (commands, queries, etc.) that mongostat has reported.

Time / Read
Time / Write
Time / Command

Latency metrics for current read requests, write requests, and other database commands. Available only for MongoDB 3.4+. To learn more, see opLatencies at serverStatus.

Scanned / Returned
Scanned Objects / Returned

Ratio of documents and objects scanned to documents and objects returned in current queries. These metrics 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

Number of active reads, queued reads, active writes, and queued writes that mongostat has reported.

Lag Time

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

CPU
Disk IOPS
Sys Mem

クラスター内のノードのオペレーティング システムに応じて統計情報を取得します。

  • Linux: MongoDB をホストしているマシンの現在使用されている CPU とディスク容量の割合と、バッファ、キャッシュ、スワップ領域を除く物理メモリ使用量の合計を表示。

  • macOS: MongoDB をホストしているマシンの現在使用されている CPU とディスク容量の割合と、キャッシュとスワップ領域を除く物理メモリ使用量の合計を表示。

  • Windows: MongoDB をホストしているマシンの現在使用されている CPU とディスク容量の割合と、物理メモリ使用量の合計を表示。

Connections
Bytes In
Bytes Out

MongoDB をホストしているマシンへの現在の接続数と、 mongostatが報告したインバウンドとアウトバウンドのバイト数。

をクリックしますテーブルのフィールドを非表示または表示します。

チャート
表示
Connections, Network In, Network Out

MongoDB をホストしているマシンへの現在の接続数と、 mongostatが報告したインバウンドとアウトバウンドのバイト数。

CPU, Disk IOPS, and Sys Mem

統計情報は、クラスター内のノードのオペレーティング システムによって異なります。

  • Linux: MongoDB をホストしているマシンの現在使用されている CPU とディスク容量の割合と、バッファ、キャッシュ、スワップ領域を除く物理メモリ使用量の合計を表示。

  • macOS: MongoDB をホストしているマシンの現在使用されている CPU とディスク容量の割合と、キャッシュとスワップ領域を除く物理メモリ使用量の合計を表示。

  • Windows: MongoDB をホストしているマシンの現在使用されている CPU とディスク容量の割合と、物理メモリ使用量の合計を表示。

Operations

Number of operations as reported by mongostat.

Query Execution Times

Displays latency metrics for current read requests, write requests, and other database commands. Available only for MongoDB 3.4+. To learn more, see opLatencies at serverStatus.

Query Targeting

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

Reads & Writes

Number of active reads, queued reads, active writes, and queued writes as reported by mongostat.

Replication Lag

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

Hottest Collections

Collections with the most operations that mongotop has reported. For each hot collection, the table also displays the Utilization Percent for the collection.

Utilization Percent is calculated from the read and write times that mongotop has reported 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 may be 0%.

ホットテスト コレクションは、チャートに表示される最新の時刻に対応します。 つまり、表示が実行中(一時停止されていない)の場合、コレクションは現在のタイムスタンプで最もホットなコレクションに対応します。 表示が一時停止されている場合、コレクションは一時停止時に最もホットなコレクションに対応します。

Slowest Operations

Slowest operations that the db.currentOp() has reported.

操作は、チャートに表示される最新の時刻に対応します。 つまり、表示が実行中(一時停止されていない)の場合、操作は現在のタイムスタンプで最も遅い操作に対応します。 表示が一時停止されている場合、操作は一時停止時に最も遅い操作に対応します。

Click the operation to view the detailed JSON document that db.currentOp() has reported for the operation.

データアクセス管理者ロールを持つユーザーは、操作詳細パネルで操作または非アクティブなトランザクションを強制的に停止するための ボタンにアクセスできます。

低速操作を停止するには

  1. Slowest Operationsペインで操作をクリックします。

  2. Operation DetailsペインでKill Opをクリックします。

    または、操作が非アクティブなトランザクションである場合は、 Kill Sessionをクリックします。

  3. Confirm OperationモーダルでYes, terminate this operationをクリックします。

To learn more about transactions, refer to the MongoDB manual.

グラフでメトリクスを非表示または表示するには、メトリクスのカラーボックスをクリックします。

リアルタイム パフォーマンス パネルのGraphビューを一時停止すると、折れ線グラフにカーソルを合わせると、その時点の正確な値と、最も遅い操作と最もホットなコレクションを特定の時点で確認できます。

表示メトリクスの更新を停止するには、[ Pause ] をクリックします。 Pauseは 表示の更新のみを停止し、基礎となるデータのコレクションを一時停止しません。

表示の更新を再開するには、[ Play ] をクリックします。