From 9978f54acf3beb6124b49af9dbed0c840cacdadf Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Fri, 4 Feb 2022 16:45:16 +0500 Subject: [PATCH] fix metric names --- weed/server/filer_server_handlers_read.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index 5f1338bf9..43b58a94a 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/weed/server/filer_server_handlers_read.go @@ -162,7 +162,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) if offset+size <= int64(len(entry.Content)) { _, err := writer.Write(entry.Content[offset : offset+size]) if err != nil { - stats.FilerRequestCounter.WithLabelValues("write.entryfailed").Inc() + stats.FilerRequestCounter.WithLabelValues("write.entry.failed").Inc() glog.Errorf("failed to write entry content: %v", err) } return err @@ -174,7 +174,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) Directory: dir, Name: name, }); err != nil { - stats.FilerRequestCounter.WithLabelValues("read.cachefailed").Inc() + stats.FilerRequestCounter.WithLabelValues("read.cache.failed").Inc() glog.Errorf("CacheRemoteObjectToLocalCluster %s: %v", entry.FullPath, err) return fmt.Errorf("cache %s: %v", entry.FullPath, err) } else { @@ -184,7 +184,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) err = filer.StreamContent(fs.filer.MasterClient, writer, chunks, offset, size) if err != nil { - stats.FilerRequestCounter.WithLabelValues("stream.contentFailed").Inc() + stats.FilerRequestCounter.WithLabelValues("read.stream.failed").Inc() glog.Errorf("failed to stream content %s: %v", r.URL, err) } return err