feat: Add object count tracking and display for S3 buckets.

This commit is contained in:
DullJZ
2025-12-21 16:08:12 +08:00
parent 322d41fbb2
commit 72fac92783
3 changed files with 19 additions and 8 deletions
+1
View File
@@ -60,6 +60,7 @@ func (r *MetricsReporter) ReportStats(stats *health.Stats) {
if exists {
bucket.mu.Lock()
bucket.UsedSize = stats.UsedSize
bucket.ObjectCount = stats.ObjectCount
bucket.mu.Unlock()
// 更新 Prometheus 指标