This topic describes the monitoring metrics related to the Logservice FetchLog operation.
logservice_fetch_entries_total
Metric description
The number of log fetch entries per second.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_fetch_entries_total | logservice_fetch_entries_total | times/s |
Calculation expression
sum(rate(log_fetch_entries_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus collection
Collect the log_fetch_entries_total metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
logservice_fetch_bytes_total
Metric description
The number of bytes of logs fetched per second.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_fetch_bytes_total | logservice_fetch_bytes_total | byte/s |
Calculation expression
sum(rate(log_fetch_bytes_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus collection
Collect the log_fetch_bytes_total metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
logservice_fetch_P95_duration_ms
Metric description
The P95 percentile of fetch log duration.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_fetch_duration_seconds_bucket | logservice_fetch_P95_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.95, sum(rate(log_fetch_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Use prometheusInput to collect the log_fetch_duration_seconds_bucket histogram metric from `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics``.
logservice_fetch_P99_duration_ms
Metric description
The P99 percentile of fetch log duration.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| log_fetch_duration_seconds_bucket | logservice_fetch_P99_duration_ms | ms |
Calculation expression
1000 * histogram_quantile(0.99, sum(rate(log_fetch_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus collection
Use prometheusInput to collect the log_fetch_duration_seconds_bucket histogram metric from `http://127.0.0.1:${monagent.logservice.exporter.port}/metrics``.
