This topic describes the monitoring metrics related to log reading in LogService.
logservice_pread_bytes_total
Metric description
The total number of bytes read from disk (including remote reads), categorized by source.
Parameter description
Metrics |
Metric Name |
unit |
|---|---|---|
| log_pread_bytes_total | logservice_pread_bytes_total | byte/s |
Calculation formula
sum(rate(log_pread_bytes_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus collection
Collect the log_pread_bytes_total metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
logservice_pread_P95_duration_ms
Metric description
The P95 percentile of random read duration, reflecting disk I/O and remote read performance, categorized by source.
Parameter description
Metrics |
Metric Name |
unit |
|---|---|---|
| log_pread_duration_seconds_bucket | logservice_pread_P95_duration_ms | ms |
Calculation formula
1000 * histogram_quantile(0.95, sum(rate(log_pread_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Collect the log_pread_duration_seconds_bucket histogram metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
logservice_pread_P99_duration_ms
Metric description
The P99 percentile of random read duration reflects disk I/O and remote read performance.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_pread_duration_seconds_bucket | logservice_pread_P99_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.99, sum(rate(log_pread_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Collect the log_pread_duration_seconds_bucket histogram metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
