このセクションでは、OceanBaseテナントのパフォーマンス指標である物理I/O回数について説明します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のOceanBaseテナントの物理I/O回数を照会できます。
ssstore_read
指標の紹介
統計範囲内で、テナントが1秒間にSSStoreを読み取る回数です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| ssstore_read | io_read_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="60000",@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 (60000) 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 (60000) and (con_id > 1000 or con_id = 1) and class < 1000
ssstore_write
指標の紹介
統計範囲内で、テナントが1秒間にSSStoreを書き込む回数です。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| ssstore_write | io_write_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="60003",@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 (60003) 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 (60003) and (con_id > 1000 or con_id = 1) and class < 1000
clog_read
指標の紹介
統計範囲内で、テナントが1秒間に読み取るclogの回数を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| clog_read | clog_io_read_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="80007",@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 (80007) and (con_id > 1000 or con_id = 1) and class < 1000
clog_write
指標の紹介
統計範囲内で、テナントが1秒間に書き込むclogの回数を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| clog_write | clog_io_write_count | times/s |
計算式
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) and (con_id > 1000 or con_id = 1) and class < 1000