このセクションでは、テナントのOBKV_HBaseタイプモニタリング項目のパフォーマンス指標であるQPS(Query Per Second、1秒間に処理するSQL文の数)について説明します。Select文、Put文、Delete文、Append文、Increment文、CheckAndPut文、CheckAndDelete文、Hybrid Batch文、Scan文に対する指標およびすべてのステートメントタイプの詳細指標が含まれます。統計範囲を指定することで、単一ゾーンまたはOBServerノード上のテナントのOBKV_HBaseタイプのQPSデータを照会できます。
all
指標の紹介
1秒間に処理されるSQLステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| all | obkv_hbase_sql_all_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191001",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="191004",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="191007",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="191010",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="190401",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="191016",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="191019",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="191022",@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 (191001, 191004, 191007, 191010, 190401, 191016, 191019, 191022) and (con_id > 1000 or con_id = 1)OceanBase V4.0 以上のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191001, 191004, 191007, 191010, 190401, 191016, 191019, 191022) and (con_id > 1000 or con_id = 1)
put
指標の紹介
1秒間に処理されるPutステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| put | obkv_hbase_sql_put_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191004",@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 (191004) and (con_id > 1000 or con_id = 1)OceanBase V4.0 以上のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191004) and (con_id > 1000 or con_id = 1)
delete
指標の紹介
1秒間に処理されるDELETEステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| delete | obkv_hbase_sql_delete_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191007",@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 (191007) and (con_id > 1000 or con_id = 1)OceanBase V4.0 以上のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191007) and (con_id > 1000 or con_id = 1)
append
指標の紹介
1秒間に処理されるAppendステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| append | obkv_hbase_sql_append_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191010",@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 (191010) and (con_id > 1000 or con_id = 1)OceanBase V4.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191010) and (con_id > 1000 or con_id = 1)
increment
指標の紹介
1秒間に処理されるincrementステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| increment | obkv_hbase_sql_increment_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="190401",@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 (190401) and (con_id > 1000 or con_id = 1)OceanBase V4.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (190401) and (con_id > 1000 or con_id = 1)
checkAndPut
指標の紹介
1秒間に処理されるCheckAndPutステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| checkAndPut | obkv_hbase_sql_checkAndPut_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191016",@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 (191016) and (con_id > 1000 or con_id = 1)OceanBase V4.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191016) and (con_id > 1000 or con_id = 1)
checkAndDelete
指標の紹介
1秒間に処理されるcheckAndDeleteステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| checkAndDelete | obkv_hbase_sql_checkAndDelete_coun | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191019",@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 (191019) and (con_id > 1000 or con_id = 1)OceanBase V4.0以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191019) and (con_id > 1000 or con_id = 1)
hybrid batch
指標の紹介
1秒間に処理されるhybrid batchステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| hybrid batch | obkv_hbase_sql_hybrid_batch_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191022",@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 (191022) and (con_id > 1000 or con_id = 1)OceanBase V4.0 以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191022) and (con_id > 1000 or con_id = 1)
scan
指標の紹介
1秒間に処理されるscanステートメントの数。
指標パラメータの説明
メトリクス項目 |
指標名 |
単位 |
|---|---|---|
| scan | obkv_hbase_sql_scan_count | times/s |
計算式
sum(rate(ob_sysstat{stat_id="191001",@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 (191001) and (con_id > 1000 or con_id = 1)OceanBase V4.0 以降のバージョン:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (191001) and (con_id > 1000 or con_id = 1)