Note
This view is available starting with V4.2.5 BP1.
Purpose
Displays sysstats at the resource group granularity.
Columns
Column |
Type |
Nullable? |
Description |
|---|---|---|---|
| CLUSTER_ID | bigint(20) | NO | Cluster ID |
| TENANT_ID | bigint(20) | NO | Tenant ID |
| GROUP_ID | bigint(20) | NO | consumer_group_id |
| SNAP_ID | bigint(20) | NO | Snapshot ID |
| SVR_IP | varchar(46) | NO | Node IP |
| SVR_PORT | bigint(20) | NO | Node Port |
| STAT_ID | bigint(20) | NO | Statistics Item ID |
| VALUE | bigint(20) | YES | Statistical Item Value |
Sample query
View sysstats at the resource group granularity.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_WR_RES_MGR_SYSSTAT limit 1;
The query result is as follows:
+------------+-----------+---------+-----------------+----------+---------+--------+----------+
| CLUSTER_ID | TENANT_ID | SNAP_ID | SVR_IP | SVR_PORT | STAT_ID | VALUE | group_id |
+------------+-----------+---------+-----------------+----------+---------+--------+----------+
| 1 | 1 | 1 | xxx.xxx.xxx.198 | 49708 | 10000 | 460384 | 1 |
+------------+-----------+---------+-----------------+----------+---------+--------+----------+
1 row in set
