This topic describes the metrics related to shared data and shared CLOG space usage in OceanBase Shared Storage mode.
Note
The following monitoring group applies to OceanBase Shared Storage (SS) mode, requiring an OceanBase cluster version of ≥ 4.6.2.0. The collection condition is ob_mode_is_shared_storage (collected only in SS mode).
ob_shared_data_size
Metric description
Total amount of shared data.
Metric parameter description
Metrics |
Metric Name |
unit |
|---|---|---|
| ob_shared_data_size | ob_shared_data_size | byte |
Calculation expression
max(ob_tenant_space_usage{space_type="Shared Data", @LABELS}) by (@GBLABELS)
SQL collection
OceanBase V4.3.5.1 and later (SS mode, collected only on RootService nodes):
select TENANT_ID, TENANT_NAME, SPACE_TYPE, USAGE_BYTES from CDB_OB_SPACE_USAGE
where SPACE_TYPE = 'Shared Data' corresponds to the total amount of shared data.
ob_shared_clog_size
Metric description
Total amount of shared Clogs.
Metric parameter description
Metrics |
Metric Name |
unit |
|---|---|---|
| ob_shared_clog_size | ob_shared_clog_size | byte |
SQL collection
select TENANT_ID, TENANT_NAME, SPACE_TYPE, USAGE_BYTES from CDB_OB_SPACE_USAGE
Here, SPACE_TYPE = 'Clog Data' corresponds to the total amount of shared clogs.
