This topic describes the RPC Request Success Rate monitoring metric for OceanBase tenants. You can specify a statistical range to query the RPC Request Success Rate of a tenant in a single zone or on a single OBServer node.
Metric description
The success rate of RPC requests within the statistical range.
Metric parameter description
Metric |
Metric name |
Unit |
|---|---|---|
| rpc_deliver_succ_ratio | rpc_deliver_succ_ratio | % |
Calculation expression
100 * (1 - sum(rate(ob_sysstat{stat_id="10004",@LABELS}[@INTERVAL])) by (@GBLABELS) / (sum(rate(ob_sysstat{stat_id="10004",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="10000",@LABELS}[@INTERVAL])) by (@GBLABELS) + sum(rate(ob_sysstat{stat_id="10002",@LABELS}[@INTERVAL])) by (@GBLABELS)))
Sampling SQL
For OceanBase Database V2.2.70 and later, but earlier than V4.0:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (10004, 10000, 10002) and (con_id > 1000 or con_id = 1) and class < 1000For OceanBase Database V4.0 and later:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (10004, 10000, 10002) and (con_id > 1000 or con_id = 1) and class < 1000
