This topic describes the Actual Usage Percentage of Vector Index Data metric for OceanBase tenants. You can specify the statistical scope to query the actual usage percentage of vector index data for a tenant in a single zone or on a single OBServer node.
Metric description
The actual usage percentage of vector index data for an OceanBase tenant.
Metric parameters
Metric |
Metric name |
Unit |
|---|---|---|
| mem_used_percent | ob_tenant_vector_mem_used_percent | % |
Calculation expression
100 * sum(ob_tenant_vector_mem_used{@LABELS}) by (@GBLABELS) / sum(ob_tenant_vector_mem_limit{@LABELS}) by (@GBLABELS)
SQL collection
OceanBase Database V4.3.5.3 and later:
select /*+ MONITOR_AGENT READ_CONSISTENCY(WEAK) */ tenant_id,svr_ip,svr_port,vector_mem_hold,vector_mem_used,vector_mem_limit from GV$OB_VECTOR_MEMORY
