perf(obs): share one usage observation per cluster tick

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
Co-Authored-By: qunjiazhu <qunjiazhu@gmail.com>
This commit is contained in:
Hauser Zhi
2026-12-02 19:55:16 +08:00
parent bfa29bdfe2
commit fa5c206fe4
7 changed files with 325 additions and 410 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
# Bucket usage metrics
Use these metrics to collect every bucket's logical usage through the existing
OpenTelemetry pipeline. RustFS reads the cached scanner usage snapshot once per
collection; exporting metrics does not enumerate objects or run an inline scan.
Use these metrics to collect logical bucket usage through the OpenTelemetry pipeline. Cluster totals and supplementary bucket gauges share one cached scanner usage read per cluster tick. The separate bucket collector reads on its own interval. Exporting metrics needs neither object enumeration nor an inline scan.
## Export and query