This topic describes the monitoring metrics related to LogService garbage collection (GC).
logservice_storage_gc_reclaimed_blocks_total
Metric description
The number of blocks reclaimed by GC per second, reflecting the progress of GC.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| storage_gc_reclaimed_blocks_total | logservice_storage_gc_reclaimed_blocks_total | times/s |
Calculation expression
sum(rate(storage_gc_reclaimed_blocks_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus collection
Collect the storage_gc_reclaimed_blocks_total metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
logservice_storage_gc_reclaimed_bytes_total
Metric description
The number of bytes reclaimed by GC per second, reflecting the progress of GC.
Metric parameters
Metrics |
Metric Name |
unit |
|---|---|---|
| storage_gc_reclaimed_bytes_total | logservice_storage_gc_reclaimed_bytes_total | byte/s |
Calculation expression
sum(rate(storage_gc_reclaimed_bytes_total{@LABELS}[@INTERVAL])) by (@GBLABELS)
Prometheus collection
Collect the storage_gc_reclaimed_bytes_total metric from http://127.0.0.1:${monagent.logservice.exporter.port}/metrics`` usingprometheusInput`.
