このセクションでは、OceanBaseテナントのモニタリング指標であるトランザクションログ量について説明します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントのトランザクションログ量を照会できます。
指標の概要
統計範囲内で、1秒間にコミットされるトランザクションログのサイズです。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| log_size | clog_trans_log_total_size | Byte |
計算式
sum(rate(ob_sysstat{stat_id="80057",@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 (80057) 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 (80057) and (con_id > 1000 or con_id = 1) and class < 1000