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 をセットアップするには、以下のようにします。
- IBM Cloud ナビゲーション・メニューの **「プログラム識別情報」**を選択します。
- **「モニタリング」**を選択します。
- 既存の Monitoring サービス・インスタンスを使用するか、新しいサービス・インスタンスを作成します。
- インスタンスの準備ができたら、 **「プラットフォーム・メトリックの構成」**をクリックしてプラットフォーム・メトリックを有効にします。
- リージョンを選択し、そのリージョンから Monitoring インスタンスを選択します。 複数のリージョンにデプロイメントが存在する場合は、リージョンごとに Monitoring をプロビジョンしてプラットフォーム・メトリックを有効にする必要があります。
IBM Cloud Monitoring メトリックへのアクセス
Db2 on Cloud で Monitoring カスタマー・メトリック・ダッシュボードを表示するには、以下のようにします。
- IBM Cloud ナビゲーション・メニューの **「プログラム識別情報」**を選択します。
- **「モニタリング」**を選択します。
- **「IBM Cloud Monitoring の表示」**を選択してダッシュボードを開きます。
詳しくは、『Monitoring 入門チュートリアル』を参照してください。
サービス・プラン別の使用可能なメトリック
データベース可用性チェック
メタデータ | 説明 |
---|---|
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. |
データベース・コミット時間
メタデータ | 説明 |
---|---|
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. |
データベースのロールバック
メタデータ | 説明 |
---|---|
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. |
災害時回復ログ・ギャップ
メタデータ | 説明 |
---|---|
Metric Name |
ibm_db2_dr_log_gap |
Metric Type |
gauge |
Value Type |
none |
Segment By |
Service instance , Resource |
Metric Description |
Disaster Recovery Log Gap. |
高可用性災害時リカバリー・ログ・ギャップ
メタデータ | 説明 |
---|---|
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. |
災害復旧は接続されていますか?
メタデータ | 説明 |
---|---|
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. |
災害復旧は構成されていますか?
メタデータ | 説明 |
---|---|
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. |
最終バックアップ所要時間 (分)
メタデータ | 説明 |
---|---|
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. |
ログ・ディスク待機
メタデータ | 説明 |
---|---|
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 ステートメントの数
メタデータ | 説明 |
---|---|
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. |
削除された行数
メタデータ | 説明 |
---|---|
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. |
更新された行数
メタデータ | 説明 |
---|---|
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. |
挿入された行数
メタデータ | 説明 |
---|---|
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. |
最後のバックアップからの時間 (時間単位)
メタデータ | 説明 |
---|---|
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. |
異常終了したアクティビティーの合計数
メタデータ | 説明 |
---|---|
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. |
完了したアクティビティーの合計
メタデータ | 説明 |
---|---|
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. |
拒否されたアクティビティーの合計数
メタデータ | 説明 |
---|---|
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. |
合計接続数
メタデータ | 説明 |
---|---|
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. |
コミットの合計
メタデータ | 説明 |
---|---|
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 |
サービス・インスタンス・セグメントは、メトリックが関連付けられているインスタンスを識別します。 |