IBM Cloud Docs
Db2 on Cloud のモニタリング

Db2 on Cloud のモニタリング

Db2 on Cloud インスタンスについての洞察を得ることができます。 これらのメトリックは、ボトルネックを検出したり、発生する可能性のある実動の問題を予測したりするのに役立ちます。

IBM Cloud® Monitoring サービスを使用して、 Db2 on Cloud インスタンスをモニターできます。 Db2 on Cloud は、CPU 使用率やメモリー使用率などの特定のメトリックをモニターできるように、インスタンスに関する選択された情報をモニターに転送します。

プラットフォーム・メトリックについて詳しくは、 プラットフォーム・メトリックの概要 を参照してください。

モニター・メトリックは現在、エンタープライズ・プランおよび標準プランでのみ使用可能です。 ライト・プランは現在サポートされていません。

Db2 on Cloud サービス・インスタンスのセットアップ

Db2 on Cloud 用に Monitoring をセットアップするには、サービス・インスタンスを作成した後、モニターする Db2 on Cloud インスタンスと同じリージョン内のプラットフォーム・メトリックを有効にする必要があります。 複数のリージョンにデプロイメントが存在する場合は、リージョンごとに Monitoring をプロビジョンしてプラットフォーム・メトリックを有効にする必要があります。

Monitoring をセットアップするには、以下のようにします。

  1. IBM Cloud ナビゲーション・メニューの **「プログラム識別情報」**を選択します。
  2. **「モニタリング」**を選択します。
  3. 既存の Monitoring サービス・インスタンスを使用するか、新しいサービス・インスタンスを作成します。
  4. インスタンスの準備ができたら、 **「プラットフォーム・メトリックの構成」**をクリックしてプラットフォーム・メトリックを有効にします。
  5. リージョンを選択し、そのリージョンから Monitoring インスタンスを選択します。 複数のリージョンにデプロイメントが存在する場合は、リージョンごとに Monitoring をプロビジョンしてプラットフォーム・メトリックを有効にする必要があります。

IBM Cloud Monitoring メトリックへのアクセス

Db2 on Cloud で Monitoring カスタマー・メトリック・ダッシュボードを表示するには、以下のようにします。

  1. IBM Cloud ナビゲーション・メニューの **「プログラム識別情報」**を選択します。
  2. **「モニタリング」**を選択します。
  3. **「IBM Cloud Monitoring の表示」**を選択してダッシュボードを開きます。

詳しくは、『Monitoring 入門チュートリアル』を参照してください。

サービス・プラン別の使用可能なメトリック

メトリック名
データベース可用性検査
データベース・コミット時間
データベース・ロールバック
災害時回復ログ・ギャップ
高可用性災害時リカバリー・ログ・ギャップ
災害復旧は接続されていますか?
災害復旧は構成されていますか?
最終バックアップ所要時間(分)
ログ・ディスク待機
固有 ID ステートメントの数
削除された行数
更新された行数
挿入された行数
最後のバックアップからの経過時間(時間)
異常終了したアクティビティーの合計
完了したアクティビティーの合計
拒否されたアクティビティーの合計
合計接続数
コミットの合計数

データベース可用性チェック

​ ​

表 1. データベース可用性検査メトリック
メタデータ 説明
Metric Name ibm_db2_db_availability_check
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description The current status of the database.

データベース・コミット時間

表 2: データベース・コミット時間メトリック
メタデータ 説明
Metric Name ibm_db2_db_commits_time
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description Indicates the number of applications that are currently connected to the database.

データベースのロールバック

​​

表 3. データベース・ロールバック・メトリック
メタデータ 説明
Metric Name ibm_db2_db_rollbacks
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description Total number of rollback statements issued by the client application and total number of rollbacks initiated internally by the database manager.

災害時回復ログ・ギャップ

表 4. 災害時回復ログ・ギャップ・メトリック
メタデータ 説明
Metric Name ibm_db2_dr_log_gap
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description Disaster Recovery Log Gap​.

高可用性災害時リカバリー・ログ・ギャップ

表 5. 高可用性災害時リカバリー・ログ・ギャップ・メトリック
メタデータ 説明
Metric Name ibm_db2_hadr_log_gap
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description HADR Log Gap monitor element This element shows the recent average of the gap between the PRIMARY_LOG_POS value and STANDBY_LOG_POS value. The gap is measured in number ofbytes.

災害復旧は接続されていますか?

表 6. 災害復旧状況メトリック
メタデータ 説明
Metric Name ibm_db2_is_dr_connected
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description Availability disaster recovery connection status of the database.

災害復旧は構成されていますか?

表 7: メトリック・メタデータ
メタデータ 説明
Metric Name ibm_db2_is_dr_configured
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description Is this formation configured with DR.

最終バックアップ所要時間 (分)

表 8. 最終バックアップ時刻の非公式
メタデータ 説明
Metric Name ibm_db2_last_backup_duration_minutes
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description The duration of the last successful backup.

ログ・ディスク待機

表 9. ログ・ディスク待機メトリック
メタデータ 説明
Metric Name ibm_db2_log_disk_wait
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description The number of times agents have to wait for log data to write to disk.

固有 ID ステートメントの数

表 10. 「固有 ID ステートメント数」メトリック
メタデータ 説明
Metric Name ibm_db2_uid_stmts
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description The number of UPDATE, INSERT, MERGE and DELETE statements that were executed.

削除された行数

表 11. 「削除された行数」メトリック
メタデータ 説明
Metric Name ibm_db2_rows_deleted
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description Total of number of row deletions attempted and total number of rows deleted from the database as a result of internal activity.

更新された行数

表 12. 「更新された行数」メトリック
メタデータ 説明
Metric Name ibm_db2_rows_updated
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description Total number of row updates attempted and total number of rows updated from the database as a result of internal activity.

挿入された行数

表 13. 「挿入された行数」メトリック
メタデータ 説明
Metric Name ibm_db2_rows_inserted
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description Total number of row insertions attempted and total number of rows inserted from the database as a result of internal activity.

最後のバックアップからの時間 (時間単位)

表 14. 「前回のバックアップからの経過時間 (時間)」メトリック
メタデータ 説明
Metric Name ibm_db2_since_last_backup_hours
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description The number of hours since there was a last successful backup.

異常終了したアクティビティーの合計数

表 15. 「異常終了したアクティビティーの合計」メトリック
メタデータ 説明
Metric Name ibm_db2_db_act_aborted
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description The total number of coordinator activities at any nesting level that completed with errors.

完了したアクティビティーの合計

表 16. 完了したアクティビティーの合計メトリック
メタデータ 説明
Metric Name ibm_db2_db_act_completed
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description The total number of coordinator activities at any nesting level that completed successfully.

拒否されたアクティビティーの合計数

表 17. 拒否されたアクティビティーの合計メトリック
メタデータ 説明
Metric Name ibm_db2_db_act_rejected
Metric Type counter
Value Type none
Segment By Service instance, Resource
Metric Description The total number of coordinator activities at any nesting level that were rejected instead of being allowed to execute.

合計接続数

表 18. 合計接続数メトリック
メタデータ 説明
Metric Name ibm_db2_total_conn
Metric Type gauge
Value Type none
Segment By Service instance, Resource
Metric Description Indicates the number of applications that are currently connected to the database.

コミットの合計

表 19. 「コミットの総数」メトリック
メタデータ 説明
Metric Name ibm_db2_db_num_commits
Metric Type counter
Value Type none
Segment By Service instance , Resource
Metric Description Total number of commit statements issued by the client application and the total number of commits initiated internally by the database manager.

セグメント化のための属性

グローバル属性

​ 以下の属性は、上記のすべてのメトリックをセグメント化するために使用できます。 ​

属性 属性名 属性の説明
Cloud Type ibm_ctype クラウド・タイプの値は、public、dedicated、または local です。
Location ibm_location モニター対象リソースのロケーション-これは、リージョン、データ・センター、またはグローバルの場合があります。
Resource ibm_resource サービスによって測定されるデータベース・メンバー・リソース
Scope ibm_scope スコープは、このメトリックに関連付けられたアカウント、組織、またはスペースの GUID です。
Service name ibm_service_name このメトリックを生成するサービスの名前

追加属性

​ 以下の属性は、上記のリファレンスに記載した 1 つ以上の属性のセグメンテーションに使用できます。 セグメンテーションのオプションについては、個々のメトリックを参照してください。 ​

属性 属性名 属性の説明
Service instance ibm_service_instance サービス・インスタンス・セグメントは、メトリックが関連付けられているインスタンスを識別します。