OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Cloud Platform

V4.3.4

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Cloud Platform
    3. V4.3.4
    iconOceanBase Cloud Platform
    V 4.3.4
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    Frontend workload metrics

    Last Updated:2026-04-14 06:46:03  Updated
    share
    What is on this page
    on_cpu
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    application
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    configuration
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    administrative
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    concurrency
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    commit
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    network
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    user_io
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    system_io
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    cluster
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    other
    Definition
    Description
    Calculation expression
    SQL statements for metric collection

    folded

    share

    This topic describes the following frontend workload metrics for OceanBase Database tenants: on_cpu, application, configuration, administrative, concurrency, commit, idle, network, user_io, system_io, cluster, and other. You can specify a statistical period to query the frontend workload metrics of a tenant in a single zone or on a single OBServer node.

    Note

    For more information about the classes of wait events, see Wait events.

    on_cpu

    Definition

    The number of active sessions that occupy CPU resources and where database commands are executed within the statistical period.

    Description

    Metric
    Metric name
    Unit
    on_cpu ob_foreground_on_cpu_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="ON_CPU",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    application

    Definition

    The number of active sessions that are waiting for events of the APPLICATION class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    application ob_foreground_application_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="APPLICATION",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    configuration

    Definition

    The number of active sessions that are waiting for events of the CONFIGURATION class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    configuration ob_foreground_configuration_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="CONFIGURATION",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    administrative

    Definition

    The number of active sessions that are waiting for events of the ADMINISTRATIVE class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    administrative ob_foreground_administrative_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="ADMINISTRATIVE",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    concurrency

    Definition

    The number of active sessions that are waiting for events of the CONCURRENCY class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    concurrency ob_foreground_concurrency_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="CONCURRENCY",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    commit

    Definition

    The number of active sessions that are waiting for events of the COMMIT class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    commit ob_foreground_commit_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="COMMIT",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    network

    Definition

    The number of active sessions that are waiting for events of the NETWORK class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    network ob_foreground_network_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="NETWORK",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    user_io

    Definition

    The number of active sessions that are waiting for events of the USER_IO class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    user_io ob_foreground_user_io_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="USER_IO",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    system_io

    Definition

    The number of active sessions that are waiting for events of the SYSTEM_IO class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    system_io ob_foreground_system_io_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="SYSTEM_IO",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    cluster

    Definition

    The number of active sessions that are waiting for events of the CLUSTER class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    cluster ob_foreground_cluster_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="CLUSTER",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    other

    Definition

    The number of active sessions that are waiting for events of the OTHER class within the statistical period.

    Description

    Metric
    Metric name
    Unit
    other ob_foreground_other_waitevent_cnt N/A

    Calculation expression

    sum(ob_foreground_waitevent_cnt{wait_class="OTHER",@LABELS}) by (@GBLABELS)

    SQL statements for metric collection

    OceanBase Database V4.2.0.0 and later but earlier than V4.3.0.0:

    SELECT /*+ MONITOR_AGENT */ ash.tenant_id tenant_id, if (ash.event_no is null or ash.event_no = 0, 'ON_CPU', wait_class) wait_class, count(*) as cnt FROM oceanbase.__all_virtual_ash ash LEFT JOIN oceanbase.v$event_name name on ash.event_no = name.`event#` WHERE sample_time between now() - INTERVAL 1 SECOND and now() and (wait_class <> 'IDLE' or wait_class is null) and session_type = 0 group by wait_class, tenant_id
    

    Previous topic

    Metrics for the SQL execution phase
    Last

    Next topic

    Background workload metrics
    Next
    What is on this page
    on_cpu
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    application
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    configuration
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    administrative
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    concurrency
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    commit
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    network
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    user_io
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    system_io
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    cluster
    Definition
    Description
    Calculation expression
    SQL statements for metric collection
    other
    Definition
    Description
    Calculation expression
    SQL statements for metric collection