diff options
| author | zouyixiong <zouyixiong@gmail.com> | 2025-02-08 02:26:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-07 10:26:39 -0800 |
| commit | 8eab76c5db2526230c1f07f406583a6b063109ec (patch) | |
| tree | 61c0acc3dc38fc7a135c85bb561cf4e9cd9c9358 /weed/stats/metrics.go | |
| parent | 9ebc132ffc1a4c6a07864a8cec05cc380a8f00e0 (diff) | |
| download | seaweedfs-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.go | 4 |
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) } } |
