I/O Throughput

2025-01-10 06:15:54  Updated

This topic describes monitoring metrics related to the I/O Throughput within an OceanBase Database tenant. You can specify a statistical period to query the I/O Throughput statistics in a single zone or on a single OBServer of an OceanBase Database tenant.

ssstore_read

Definition

The amount of data read from SSStores in a tenant per second in the specified statistical period.

Description

Metric Metric field name Unit
ssstore_read io_read_size Byte

Calculation expression

sum(rate(ob_sysstat{stat_id="60002",@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 (60002) 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 (60002) and (con_id > 1000 or con_id = 1) and class < 1000
    

ssstore_write

Definition

The amount of data written to SSStores in a tenant per second in the specified statistical period.

Description

Metric Metric field name Unit
ssstore_write io_write_size MiB

Calculation expression

sum(rate(ob_sysstat{stat_id="60005",@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 (60005) 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 (60005) and (con_id > 1000 or con_id = 1) and class < 1000
    

clog_read

Definition

The amount of clog reads in a tenant per second in the specified statistical period.

Description

Metric Metric field name Unit
clog_read clog_io_read_size Byte

Calculation expression

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

SQL statements for metric collection

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 (80008) and (con_id > 1000 or con_id = 1) and class < 1000

clog_write

Definition

The number of clog writes in a tenant per second in the specified statistical period.

Description

Metric Metric field name Unit
clog_write clog_io_write_size MiB

Calculation expression

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

SQL statements for metric collection

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 (80002) and (con_id > 1000 or con_id = 1) and class < 1000

Contact Us