aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-01-10 23:05:27 +0500
committerGitHub <noreply@github.com>2024-01-10 10:05:27 -0800
commita7fc723ae0992c787629ad57c6f2c4f05c1de553 (patch)
treea250a80be0380ccccc10b2dd7e32d8a2e2356ae4 /weed/operation/upload_content.go
parentfe417ee02d1dbe722b0061c3f82dc1916157f36f (diff)
downloadseaweedfs-a7fc723ae0992c787629ad57c6f2c4f05c1de553.tar.xz
seaweedfs-a7fc723ae0992c787629ad57c6f2c4f05c1de553.zip
chore: add status code for request_total metrics (#5188)
Diffstat (limited to 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 0413f433b..b48d73deb 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -329,7 +329,7 @@ func upload_content(fillBufferFunction func(w io.Writer) error, originalDataSize
if strings.Contains(post_err.Error(), "connection reset by peer") ||
strings.Contains(post_err.Error(), "use of closed network connection") {
glog.V(1).Infof("repeat error upload request %s: %v", option.UploadUrl, postErr)
- stats.FilerRequestCounter.WithLabelValues(stats.RepeatErrorUploadContent).Inc()
+ stats.FilerHandlerCounter.WithLabelValues(stats.RepeatErrorUploadContent).Inc()
resp, post_err = HttpClient.Do(req)
defer util.CloseResponse(resp)
}