このセクションでは、OceanBaseテナントの監視メトリックである キャッシュリクエスト数 について説明します。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントの キャッシュリクエスト数 を照会できます。
block_cache
メトリック紹介
統計範囲内のブロックキャッシュリクエスト数。
メトリックパラメータ説明
メトリクス項目 |
メトリック名 |
単位 |
|---|---|---|
| block_cache | block_cache_req_total | - |
計算式
sum(delta(ob_sysstat{stat_id="50008",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(delta(ob_sysstat{stat_id="50009",@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 (50008, 50009) 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 (50008, 50009) and (con_id > 1000 or con_id = 1) and class < 1000
row_cache
メトリック紹介
統計範囲内の行キャッシュリクエスト数。
メトリックパラメータ説明
メトリクス項目 |
メトリック名 |
単位 |
|---|---|---|
| row_cache | row_cache_req_total | - |
計算式
sum(delta(ob_sysstat{stat_id="50000",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(delta(ob_sysstat{stat_id="50001",@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 (50000, 50001) 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 (50000, 50001) and (con_id > 1000 or con_id = 1) and class < 1000
clog_cache
指標の紹介
コミットログキャッシュへのリクエスト回数です。
メトリクスパラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| clog_cache | clog_cache_req_total | - |
計算式
sum(delta(ob_sysstat{stat_id="50037",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(delta(ob_sysstat{stat_id="50038",@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 (50037, 50038) 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 (50037, 50038) and (con_id > 1000 or con_id = 1) and class < 1000
bloom_filter_cache
指標の紹介
統計範囲内のブルームフィルターキャッシュへのリクエスト回数です。
メトリクスパラメータの説明
メトリクス項目 |
メトリクス名 |
単位 |
|---|---|---|
| bloom_filter_cache | bloom_filter_cache_req_total | - |
計算式
sum(delta(ob_sysstat{stat_id="50004",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(delta(ob_sysstat{stat_id="50005",@LABELS}[@INTERVAL])) by (@GBLABELS)
クエリの取得
OceanBase V4.0 より前のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (50004, 50005) 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 (50004, 50005) and (con_id > 1000 or con_id = 1) and class < 1000
location_cache
指標の紹介
統計範囲内での、locationキャッシュのリクエスト回数を示します。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| location_cache | location_cache_req_total | - |
計算式
sum(delta(ob_sysstat{stat_id="50010",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(delta(ob_sysstat{stat_id="50011",@LABELS}[@INTERVAL])) by (@GBLABELS)
クエリの取得
OceanBase V4.0 より前のバージョン:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (50010, 50011) 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 (50010, 50011) and (con_id > 1000 or con_id = 1) and class < 1000