メトリクスを設定する - Amazon EMR

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

メトリクスを設定する

HBase Master をモニタリングするには、Amazon CloudWatch エージェントを設定して特定のメトリクスを収集します。

  1. HBase マスターメトリクスのセットアップ – HBase マスターをモニタリングするには、Amazon CloudWatch エージェントを設定して特定のメトリクスを収集できます。マスター割り当てマネージャーのアクティビティを追跡するための設定例を以下に示します:

    [ { "Classification": "emr-metrics", "Properties": {}, "Configurations": [ { "Classification": "emr-hbase-master-metrics", "Properties": { "Hadoop:service=HBase,name=Master,sub=AssignmentManager": "AssignFailedCount,AssignSubmittedCount", "otel.metric.export.interval": "30000" }, "Configurations": [] } ] } ]

    この設定では、

    • MBean (Hadoop:service=HBase,name=Master,sub=AssignmentManager) を指定して、AssignFailedCountAssignSubmittedCount などのメトリクスを収集します。

    • これらのメトリクスを 30 秒 (30,000 ミリ秒) ごとに収集するように間隔を設定します。

  2. HBase リージョンサーバーメトリクスの設定 – HBase リージョンサーバーをモニタリングするには、CloudWatch エージェントを以下のように設定します:

    [ { "Classification": "emr-metrics", "Properties": {}, "Configurations": [ { "Classification": "emr-hbase-region-server-metrics", "Properties": { "Hadoop:service=HBase,name=RegionServer,sub=IPC": "numActiveHandler,numActivePriorityHandler", "otel.metric.export.interval": "30000" }, "Configurations": [] } ] } ]

    この設定では、

    • リージョンサーバー (numActiveHandlernumActivePriorityHandler) のアクティブなハンドラーをモニタリングします。

    • メトリクス収集に 30 秒間隔を使用します。

  3. HBase REST Server メトリクスのセットアップ – HBase REST インターフェイスをモニタリングするには、以下の設定を使用できます:

    [ { "Classification": "emr-metrics", "Properties": {}, "Configurations": [ { "Classification": "emr-hbase-rest-server-metrics", "Properties": { "Hadoop:service=HBase,name=REST": "successfulPut,successfulScanCount", "otel.metric.export.interval": "30000" }, "Configurations": [] } ] } ]

    この例では、CloudWatch エージェントは 30 秒ごとに正常な PUT オペレーションとスキャン数に関するメトリクスを収集します。

  4. HBase Thrift サーバーメトリクスのセットアップ – HBase Thrift サーバーをモニタリングするには、以下のような設定でメトリクスを設定できます:

    [ { "Classification": "emr-metrics", "Properties": {}, "Configurations": [ { "Classification": "emr-hbase-thrift-server-metrics", "Properties": { "Hadoop:service=HBase,name=Thrift,sub=ThriftOne": "BatchGet_max,BatchGet_mean", "otel.metric.export.interval": "30000" }, "Configurations": [] } ] } ]

    この設定では、Thrift サーバーでのバッチ GET オペレーションの最大時間と平均時間を追跡します。