aboutsummaryrefslogtreecommitdiff
path: root/weed/server/filer_server_handlers_read_dir.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-08-04 13:44:54 +0500
committerGitHub <noreply@github.com>2022-08-04 01:44:54 -0700
commit22181dd01895d5c993979678ae13c601548c20f8 (patch)
treeb3477a5e8a9edb050d0f24dcd9cb3b195385798e /weed/server/filer_server_handlers_read_dir.go
parentbd13a7968f9cc7620f19511e896c6e0099ff7f86 (diff)
downloadseaweedfs-22181dd01895d5c993979678ae13c601548c20f8.tar.xz
seaweedfs-22181dd01895d5c993979678ae13c601548c20f8.zip
refactor FilerRequest metrics (#3402)
* refactor FilerRequest metrics * avoid double count proxy * defer to
Diffstat (limited to 'weed/server/filer_server_handlers_read_dir.go')
-rw-r--r--weed/server/filer_server_handlers_read_dir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/filer_server_handlers_read_dir.go b/weed/server/filer_server_handlers_read_dir.go
index 757b67dc7..0b48a9ae3 100644
--- a/weed/server/filer_server_handlers_read_dir.go
+++ b/weed/server/filer_server_handlers_read_dir.go
@@ -18,7 +18,7 @@ import (
// is empty.
func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Request) {
- stats.FilerRequestCounter.WithLabelValues("list").Inc()
+ stats.FilerRequestCounter.WithLabelValues(stats.DirList).Inc()
path := r.URL.Path
if strings.HasSuffix(path, "/") && len(path) > 1 {