aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/stats.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/s3api/stats.go')
-rw-r--r--weed/s3api/stats.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/s3api/stats.go b/weed/s3api/stats.go
index cd04b9970..415ec55dd 100644
--- a/weed/s3api/stats.go
+++ b/weed/s3api/stats.go
@@ -11,6 +11,10 @@ import (
func track(f http.HandlerFunc, action string) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
+ inFlightGauge := stats_collect.S3InFlightRequestsGauge.WithLabelValues(action)
+ inFlightGauge.Inc()
+ defer inFlightGauge.Dec()
+
bucket, _ := s3_constants.GetBucketAndObject(r)
w.Header().Set("Server", "SeaweedFS "+util.VERSION)
recorder := stats_collect.NewStatusResponseWriter(w)