From 6fd88a036f8e9cad096c288b5765191e816533dd Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 7 Feb 2023 12:45:51 +0300 Subject: [PATCH] [#2241] metrics: Fix request count metrics names Signed-off-by: Evgenii Stratonikov --- CHANGELOG.md | 1 + pkg/metrics/object.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 327a94148..44705ea75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ Changelog for FrostFS Node - Expired objects could be returned if not marked with GC yet (#2213) - `neofs-adm morph dump-hashes` now properly iterates over custom domain (#2224) - Possible deadlock in write-cache (#2239) +- Fix `*_req_count` and `*_req_count_success` metric values (#2241) ### Removed ### Updated diff --git a/pkg/metrics/object.go b/pkg/metrics/object.go index 0a9497583..0bb16b780 100644 --- a/pkg/metrics/object.go +++ b/pkg/metrics/object.go @@ -51,13 +51,13 @@ func newMethodCallCounter(name string) methodCount { success: prometheus.NewCounter(prometheus.CounterOpts{ Namespace: namespace, Subsystem: objectSubsystem, - Name: fmt.Sprintf("%s_req_count", name), + Name: fmt.Sprintf("%s_req_count_success", name), Help: fmt.Sprintf("The number of successful %s requests processed", name), }), total: prometheus.NewCounter(prometheus.CounterOpts{ Namespace: namespace, Subsystem: objectSubsystem, - Name: fmt.Sprintf("%s_req_count_success", name), + Name: fmt.Sprintf("%s_req_count", name), Help: fmt.Sprintf("Total number of %s requests processed", name), }), }