This topic introduces the Number of GTS Requests monitoring metric for OceanBase tenants. You can specify a statistical range to query the Number of GTS Requests for a tenant in a single zone or on a single OBServer node.
Metric description
The number of GTS requests within the statistical range.
Metric parameters
Metric |
Metric name |
Unit |
|---|---|---|
| gts_request_count | gts_request_count | - |
Calculation expression
sum(rate(ob_sysstat{stat_id="30053",@LABELS}[@INTERVAL])) by (@GBLABELS)
Collection 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 (30053) and (con_id > 1000 or con_id = 1)For OceanBase Database V4.0 and later:
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (30053) and (con_id > 1000 or con_id = 1) and con_id in (select tenant_id from DBA_OB_TENANTS WHERE tenant_type<>'META')
