このセクションでは、LogServiceのログ読み取りに関連する監視メトリクスについて説明します。
logservice_pread_bytes_total
指標の紹介
ディスクからの読み取りバイト数(リモート読み取りを含む)は、source の観点から区別されます。
メトリクスパラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| log_pread_bytes_total | logservice_pread_bytes_total | byte/s |
計算式
sum(rate(log_pread_bytes_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus収集
prometheusInput を使用して、http://127.0.0.1:${monagent.logservice.exporter.port}/metrics から log_pread_bytes_total メトリクスを収集します。
logservice_pread_P95_duration_ms
指標の紹介
ランダム読み取り時間の95パーセンタイル(P95)は、ディスクI/Oおよびリモート読み取り性能を反映し、source次元で区別されます。
メトリクスパラメータの説明
指標項目 |
指標名 |
単位 |
|---|---|---|
| log_pread_duration_seconds_bucket | logservice_pread_P95_duration_ms | ms |
計算式
1000 * histogram_quantile(0.95, sum(rate(log_pread_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheus収集
prometheusInput を使用して、http://127.0.0.1:${monagent.logservice.exporter.port}/metrics から log_pread_duration_seconds_bucket ヒストグラムメトリクスを収集します。
logservice_pread_P99_duration_ms
メトリクスの紹介
ランダム読み取り時間の分位数(P99)で、ディスクI/Oおよびリモート読み取りのパフォーマンスを反映します。
メトリクスパラメータの説明
メトリクス項目 |
メトリクス名 |
単位 |
|---|---|---|
| log_pread_duration_seconds_bucket | logservice_pread_P99_duration_ms | ms |
計算式
1000 * histogram_quantile(0.99, sum(rate(log_pread_duration_seconds_bucket{@LABELS}[@INTERVAL])) by (@GBLABELS,le))
Prometheusによる収集
prometheusInput を使用して、http://127.0.0.1:${monagent.logservice.exporter.port}/metrics から log_pread_duration_seconds_bucket ヒストグラムメトリクスを収集します。