diff options
| author | Hadi Zamani <130847170+hadizamani021@users.noreply.github.com> | 2025-01-26 09:25:06 +0330 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-25 21:55:06 -0800 |
| commit | a2330f624b8f44776857c4d0c1ab8d05fb866759 (patch) | |
| tree | d7eb70a788a4e9fa0a153777d815488ed2da2554 /weed/s3api/s3api_object_handlers_put.go | |
| parent | be15fee8e7a4623afca02933f6ed8092994e1dae (diff) | |
| download | seaweedfs-a2330f624b8f44776857c4d0c1ab8d05fb866759.tar.xz seaweedfs-a2330f624b8f44776857c4d0c1ab8d05fb866759.zip | |
Add metrics for uploaded and deleted s3 objects (#6475)
Diffstat (limited to 'weed/s3api/s3api_object_handlers_put.go')
| -rw-r--r-- | weed/s3api/s3api_object_handlers_put.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go index 4f194a18c..9e3f5d9d9 100644 --- a/weed/s3api/s3api_object_handlers_put.go +++ b/weed/s3api/s3api_object_handlers_put.go @@ -102,6 +102,7 @@ func (s3a *S3ApiServer) PutObjectHandler(w http.ResponseWriter, r *http.Request) setEtag(w, etag) } + stats_collect.S3UploadedObjectsCounter.WithLabelValues(bucket).Inc() writeSuccessResponseEmpty(w, r) } |
