このセクションでは、OceanBaseテナントのモニタリング指標である トランザクションログの処理時間 について説明します。これには、トランザクションログのネットワーク同期平均時間とトランザクションログのディスク書き込み平均時間が含まれます。統計範囲を指定することで、単一ゾーンまたはOBServerノードにおけるテナントの トランザクションログの処理時間 を照会できます。
sync_time
指標の概要
統計範囲内で、各トランザクションログのネットワーク同期にかかる平均時間です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| sync_time | trans_commit_log_sync_rt | μs |
計算式
sum(rate(ob_sysstat{stat_id="30000",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="30001",@LABELS}[@INTERVAL])) by (@GBLABELS)
クエリSQL
OceanBase V4.0 より前のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30000, 30001) and (con_id > 1000 or con_id = 1) and class < 1000OceanBase V4.0 以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30000, 30001) and (con_id > 1000 or con_id = 1) and class < 1000
write_disk
指標の概要
統計範囲内で、各トランザクションログのディスク書き込みにかかる平均時間です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| write_disk | clog_write_disk_rt | μs |
計算式
sum(rate(ob_sysstat{stat_id="80041",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="80040",@LABELS}[@INTERVAL])) by (@GBLABELS)
クエリSQL
OceanBase V4.0 より前のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (80040, 80041) and (con_id > 1000 or con_id = 1) and class < 1000OceanBase V4.0 以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (80040, 80041) and (con_id > 1000 or con_id = 1) and class < 1000
clog_write
指標の紹介
統計範囲内で、各トランザクションログのディスク書き込みにかかる平均時間です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| clog_write | clog_io_write_rt | μs |
計算式
sum(rate(ob_sysstat{stat_id="80003",@LABELS}[@INTERVAL])) by (@GBLABELS) / sum(rate(ob_sysstat{stat_id="80001",@LABELS}[@INTERVAL])) by (@GBLABELS)
取得SQL
OceanBase V4.1.0.3 以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (80001, 80003) and (con_id > 1000 or con_id = 1) and class < 1000