aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/stream.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/filer/stream.go
parentfe417ee02d1dbe722b0061c3f82dc1916157f36f (diff)
downloadseaweedfs-a7fc723ae0992c787629ad57c6f2c4f05c1de553.tar.xz
seaweedfs-a7fc723ae0992c787629ad57c6f2c4f05c1de553.zip
chore: add status code for request_total metrics (#5188)
Diffstat (limited to 'weed/filer/stream.go')
-rw-r--r--weed/filer/stream.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go
index eb8f0f3a1..73a2a219c 100644
--- a/weed/filer/stream.go
+++ b/weed/filer/stream.go
@@ -121,10 +121,10 @@ func StreamContentWithThrottler(masterClient wdclient.HasLookupFileIdFunction, w
remaining -= int64(chunkView.ViewSize)
stats.FilerRequestHistogram.WithLabelValues("chunkDownload").Observe(time.Since(start).Seconds())
if err != nil {
- stats.FilerRequestCounter.WithLabelValues("chunkDownloadError").Inc()
+ stats.FilerHandlerCounter.WithLabelValues("chunkDownloadError").Inc()
return fmt.Errorf("read chunk: %v", err)
}
- stats.FilerRequestCounter.WithLabelValues("chunkDownload").Inc()
+ stats.FilerHandlerCounter.WithLabelValues("chunkDownload").Inc()
downloadThrottler.MaybeSlowdown(int64(chunkView.ViewSize))
}
if remaining > 0 {