This topic describes the monitoring metrics related to log latency in LogService.
logservice_receiveP95_duration_ms
Metric description
The P95 percentile of the end-to-end duration for a single receive_log operation, which reflects log write latency.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_receive_duration_seconds_bucket | logservice_receiveP95_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.95, sum(rate(log_receive_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Use prometheusInput to collect the log_receive_duration_seconds_bucket histogram metric from `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics``.
logservice_receiveP99_duration_ms
Metric description
The P99 percentile of the end-to-end duration for a single receive_log operation.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_receive_duration_seconds_bucket | logservice_receiveP99_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.99, sum(rate(log_receive_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Use prometheusInput to collect the log_receive_duration_seconds_bucket histogram metric from `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics``.
logservice_pwriteP95_duration_ms
Metric description
The disk pwrite (DIO+O_SYNC) duration percentile (P95), which directly reflects write disk latency.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_pwrite_duration_seconds_bucket | logservice_pwriteP95_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.95, sum(rate(log_pwrite_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Use prometheusInput to collect the log_pwrite_duration_seconds_bucket histogram metric from `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics``.
logservice_pwriteP99_duration_ms
Metric description
The disk pwrite (DIO+O_SYNC) duration percentile (P99).
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_pwrite_duration_seconds_bucket | logservice_pwriteP99_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.99, sum(rate(log_pwrite_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Use prometheusInput to collect the log_pwrite_duration_seconds_bucket histogram metric from `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics``.
