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.2.2

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive 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.2.2
    iconOceanBase Cloud Platform
    V 4.2.2
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    • V 4.4.2
    • 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

    ocp_collect_metric_failure_rate_high

    Last Updated:2026-04-14 07:56:02  Updated
    Share
    What is on this page
    Description
    Principle
    Alert rule
    Alert information
    Alert templates
    Impact on the system
    Possible causes
    Suggested solutions

    folded

    Share

    Description

    OCP-Server collects monitoring data from the exporter of OCP-Agent. This alert is triggered when the collection failure rate of OCP-Server exceeds the threshold. Collection failure rate = Number of failed collection attempts / Total number of collection attempts.

    Principle

    Parameter
    Value
    Metric collect_metric_failure_rate
    Source OceanBase Cloud Platform (OCP). You can check the failure rate at http://OCP-IP:8080/api/v2/actuator/prometheus.
    Collected metric ocp_monitor_collect_request_errors_total and ocp_monitor_collect_request_duration_ms_count
    Metric expression 100 * sum(rate(ocp_monitor_collect_request_errors_total{app="OCP"}[60])) by (svr_ip) / sum(rate(ocp_monitor_collect_request_duration_ms_count{app="OCP"}[60])) by (svr_ip)
    Collection cycle 60 seconds

    Alert rule

    Metric expression
    Metric description
    Default threshold
    Detection cycle
    Time before clearance
    collect_metric_failure_rate > 10 Exporter collection failure rate 10 15 seconds 5 minutes

    Alert information

    Trigger method
    Alert level
    Scope
    Metric expression Critical Service

    Alert templates

    • Overview

      • Template: ${alarm_target} ${alarm_name}
      • Example: alarm_template_id=0:app=OCP. The collection failure rate of OCP-Server is high.
    • Details

      • Template: Alert: ${ alarm_name}. Monitoring data collection failure rate: ${value_shown}.
      • Example: Alert: The collection failure rate of OCP-Server is high. Monitoring data collection failure rate: 75.757 %.

    Impact on the system

    The monitoring, alerting, diagnosis, and inspection features on the GUI may be affected.

    1. The monitoring statistics on the GUI may be intermittent or not displayed.
    2. No alerts are generated when an exception occurs.
    3. You cannot locate the causes for the exceptions in the diagnostic or inspection report.

    Possible causes

    • The resources for the OCP_meta tenant are insufficient, which results in frequent full garbage collection (GC) exceptions of OCP. You can check the resource specification of the tenant and scale out the tenant. For more information, see MonitorDB resources.

    • The ocp_monagent process of OCP-Agent is abnormal, which causes an access exception of the exporter API. You can check the monagent.log file in the /home/admin/ocp_agent/log/ directory for information about exceptions.

    • Check the ocp.log of OCP-Server for the causes. For example, a network issue may cause an access timeout. If the API fails to respond within 1 second, the API response times out.

    • OCP-Agent is collecting a large amount of data, which causes an API response timeout. You can run the following command on the host that lacks monitoring data to check the amount of collected monitoring data. If the amount of data is massive, for example, more than 10,000 rows, upgrade OCP to a version later than V4.2.0.

      sudo curl -s --unix-socket /home/admin/ocp_agent/run/ocp_monagent.$(cat /home/admin/ocp_agent/run/ocp_monagent.pid).sock http://unix-socket-server/metrics/ob/basic | wc -l
      sudo curl -s --unix-socket /home/admin/ocp_agent/run/ocp_monagent.$(cat /home/admin/ocp_agent/run/ocp_monagent.pid).sock http://unix-socket-server/metrics/ob/extra | wc -l
      

    Suggested solutions

    1. If the alert is caused by resource insufficiency, scale out the ocp_monitor and ocp_meta tenants.
    2. If the alert is caused by OCP-Agent, other alerts, such as monitor_exporter_unavailable, monagent_log_alarm, obagent_dead, and host_unavailable are also reported at the same time. In this case, you can view the alert handling suggestions and take corresponding measures. In case of emergency, you can restart or reinstall OCP-Agent.
    3. Upgrade OCP-Agent. In OCP V4.2.1, zero values in the diagnostic data are filtered. Zero values may account for a large proportion of diagnostic data and have a significant impact on data collection performance.

    Previous topic

    host_agent_version_not_same
    Last

    Next topic

    os_cpu_irq_error
    Next
    What is on this page
    Description
    Principle
    Alert rule
    Alert information
    Alert templates
    Impact on the system
    Possible causes
    Suggested solutions