aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
authorzouyixiong <zouyixiong@gmail.com>2025-02-08 02:26:39 +0800
committerGitHub <noreply@github.com>2025-02-07 10:26:39 -0800
commit8eab76c5db2526230c1f07f406583a6b063109ec (patch)
tree61c0acc3dc38fc7a135c85bb561cf4e9cd9c9358 /weed/stats/metrics.go
parent9ebc132ffc1a4c6a07864a8cec05cc380a8f00e0 (diff)
downloadseaweedfs-8eab76c5db2526230c1f07f406583a6b063109ec.tar.xz
seaweedfs-8eab76c5db2526230c1f07f406583a6b063109ec.zip
fix: record and delete bucket metrics after inactive (#6523)
Co-authored-by: XYZ <XYZ>
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index f741aee10..76e3afbdf 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -479,6 +479,10 @@ func bucketMetricTTLControl() {
c := S3RequestCounter.DeletePartialMatch(labels)
c += S3RequestHistogram.DeletePartialMatch(labels)
c += S3TimeToFirstByteHistogram.DeletePartialMatch(labels)
+ c += S3BucketTrafficReceivedBytesCounter.DeletePartialMatch(labels)
+ c += S3BucketTrafficSentBytesCounter.DeletePartialMatch(labels)
+ c += S3DeletedObjectsCounter.DeletePartialMatch(labels)
+ c += S3UploadedObjectsCounter.DeletePartialMatch(labels)
glog.V(0).Infof("delete inactive bucket metrics, %s: %d", bucket, c)
}
}