aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-31 10:41:05 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-31 10:41:05 -0700
commitc8398bdb09fceff65d7d023c6ee9b9a85148d31e (patch)
tree5b12bc3300d512ce2c0ac0cfa6ca001cdbe6a75b
parent8a1c8e41b301fff49f0e55a4810c056406f2bf7d (diff)
downloadseaweedfs-c8398bdb09fceff65d7d023c6ee9b9a85148d31e.tar.xz
seaweedfs-c8398bdb09fceff65d7d023c6ee9b9a85148d31e.zip
adjust metrics
-rw-r--r--weed/filer2/filerstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go
index 1d677e507..f368e119d 100644
--- a/weed/filer2/filerstore.go
+++ b/weed/filer2/filerstore.go
@@ -138,10 +138,10 @@ func (fsw *FilerStoreWrapper) ListDirectoryEntries(ctx context.Context, dirPath
}
func (fsw *FilerStoreWrapper) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int, prefix string) ([]*Entry, error) {
- stats.FilerStoreCounter.WithLabelValues(fsw.ActualStore.GetName(), "list").Inc()
+ stats.FilerStoreCounter.WithLabelValues(fsw.ActualStore.GetName(), "prefixList").Inc()
start := time.Now()
defer func() {
- stats.FilerStoreHistogram.WithLabelValues(fsw.ActualStore.GetName(), "list").Observe(time.Since(start).Seconds())
+ stats.FilerStoreHistogram.WithLabelValues(fsw.ActualStore.GetName(), "prefixList").Observe(time.Since(start).Seconds())
}()
entries, err := fsw.ActualStore.ListDirectoryPrefixedEntries(ctx, dirPath, startFileName, includeStartFile, limit, prefix)
if err == ErrUnsupportedListDirectoryPrefixed {