このセクションでは、OceanBaseテナントのパフォーマンス指標である XAステートメント数 について説明します。XAステートメント数 指標は、OceanBaseテナントのXAステートメントの総数を集計するために使用されます。この指標は、xa_start_total_count、xa_end_total_count、xa_prepare_total_count、xa_commit_total_count、xa_rollback_total_count の5つのサブ指標に細分化され、テナントのXAステートメント数を集計します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントの XAステートメント数 を照会できます。
xa_start_total_count
指標の紹介
OceanBaseテナント内のxa_startステートメント数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_start_total_count | xa_start_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30200",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30200) and (con_id > 1000 or con_id = 1) and class < 1000
xa_end_total_count
指標の紹介
OceanBaseテナント内のxa_endステートメント数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_end_total_count | xa_end_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30204",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30204) and (con_id > 1000 or con_id = 1) and class < 1000
xa_prepare_total_count
指標の紹介
OceanBaseテナント内のxa_prepareステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_prepare_total_count | xa_prepare_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30208",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30208) and (con_id > 1000 or con_id = 1) and class < 1000
xa_commit_total_count
指標の紹介
OceanBaseテナント内のxa_commitステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_commit_total_count | xa_commit_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30212",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30212) and (con_id > 1000 or con_id = 1) and class < 1000
xa_rollback_total_count
指標の紹介
OceanBaseテナント内のxa_rollbackステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| xa_rollback_total_count | xa_rollback_total_count | - |
計算式
sum(rate(ob_sysstat{stat_id="30216",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.2.2.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30216) and (con_id > 1000 or con_id = 1) and class < 1000