Transaction log volume

2025-07-25 02:30:59  Updated

This topic describes the performance metric transaction log volume in an OceanBase cluster. You can specify a statistical period to query the transaction log volume in a single zone or on a single OBServer of an OceanBase cluster.

Definition

The total size of transaction logs committed per second.

Description

Metric Metric field name Unit
- clog_trans_log_total_size Byte

Calculation expression

sum(rate(ob_sysstat{stat_id="80057",@LABELS}[@INTERVAL])) by (@GBLABELS)

SQL statements for metric collection

  • If you use OceanBase Database of a version earlier than V4.0, execute the following statement:

    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 < 1000
    
  • If you use OceanBase Database V4.0 or later, execute the following statement:

    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
    

Contact Us