---
title: "日志延迟 - 云平台 OCP V4.5.0 | OceanBase 文档中心"
description: 日志延迟 本节介绍 Logservice 日志延迟相关的监控指标。 logservice_receiveP95_duration_ms 指标介绍 单次 receive_log 端到端耗时分位数（P95），用于反映日志写入延迟。 指标参数说明 指标项 指标名称 单位 log_receive_duration_secon…
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*lJTmRZ61jSUAAAAAAAAAAAAADiGDAQ/original) 云平台 OCPV 4.5.0

# 日志延迟

更新时间：2026-08-03 16:09:20

[编辑](https://github.com/oceanbase/ocp-doc/edit/V4.5.0/zh-CN/1900.reference-guide/300.monitoring-indicator-reference/700.ai-cluster/100.logservice/200.log-latency.md)  

本节介绍 Logservice 日志延迟相关的监控指标。

## logservice_receiveP95_duration_ms

### 指标介绍

单次 `receive_log` 端到端耗时分位数（P95），用于反映日志写入延迟。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| log_receive_duration_seconds_bucket | logservice_receiveP95_duration_ms | ms |

### 计算表达式

```
1000 * histogram_quantile(0.95, sum(rate(log_receive_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))

```

### Prometheus 采集

通过 `prometheusInput` 从 `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics` 采集 `log_receive_duration_seconds_bucket` 直方图指标。

---

## logservice_receiveP99_duration_ms

### 指标介绍

单次 `receive_log` 端到端耗时分位数（P99）。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| log_receive_duration_seconds_bucket | logservice_receiveP99_duration_ms | ms |

### 计算表达式

```
1000 * histogram_quantile(0.99, sum(rate(log_receive_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))

```

---

## logservice_pwriteP95_duration_ms

### 指标介绍

磁盘 pwrite（DIO+O_SYNC）耗时分位数（P95），直观反馈写盘延迟。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| log_pwrite_duration_seconds_bucket | logservice_pwriteP95_duration_ms | ms |

### 计算表达式

```
1000 * histogram_quantile(0.95, sum(rate(log_pwrite_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))

```

### Prometheus 采集

通过 `prometheusInput` 从 `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics` 采集 `log_pwrite_duration_seconds_bucket` 直方图指标。

---

## logservice_pwriteP99_duration_ms

### 指标介绍

磁盘 pwrite（DIO+O_SYNC）耗时分位数（P99）。

### 指标参数说明

| 指标项 | 指标名称 | 单位 |
| --- | --- | --- |
| log_pwrite_duration_seconds_bucket | logservice_pwriteP99_duration_ms | ms |

### 计算表达式

```
1000 * histogram_quantile(0.99, sum(rate(log_pwrite_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
