SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
volume: fix metrics for volume request time
chrislue259052a70b7
diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.goindex fd043ad511..92f7cca1de 100644--- a/weed/server/volume_server_handlers.go+++ b/weed/server/volume_server_handlers.go@@ -38,9 +38,9 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque}stats.VolumeServerRequestCounter.WithLabelValues(r.Method).Inc()start := time.Now()- defer func() {+ defer func(start time.Time) {stats.VolumeServerRequestHistogram.WithLabelValues(r.Method).Observe(time.Since(start).Seconds())- }()+ }(start)switch r.Method {case "GET", "HEAD":stats.ReadRequest()