From 69b788a90b437b04da17996166361f016e8c0e25 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Wed, 14 Jun 2023 18:39:49 +0300 Subject: [PATCH] [#424] metrics: Rename mode to mode_info To follow best practice. Signed-off-by: Dmitrii Stepanov --- pkg/metrics/engine.go | 2 +- pkg/metrics/writecache.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/engine.go b/pkg/metrics/engine.go index 7eac858619..395ab3356d 100644 --- a/pkg/metrics/engine.go +++ b/pkg/metrics/engine.go @@ -54,7 +54,7 @@ func newEngineMetrics() *engineMetrics { objectCounter: newEngineGaugeVector("objects_total", "Objects counters per shards", []string{shardIDLabelKey, counterTypeLabelKey}), gc: newGCMetrics(), writeCache: newWriteCacheMetrics(), - mode: newShardIDMode(engineSubsystem, "mode", "Shard mode"), + mode: newShardIDMode(engineSubsystem, "mode_info", "Shard mode"), } } diff --git a/pkg/metrics/writecache.go b/pkg/metrics/writecache.go index 373772a622..a9c1b33a70 100644 --- a/pkg/metrics/writecache.go +++ b/pkg/metrics/writecache.go @@ -60,7 +60,7 @@ func newWriteCacheMetrics() *writeCacheMetrics { }, []string{wcShardID, wcStorage, wcSuccess, wcOperation}), actualCount: newWCGaugeVec("actual_objects_total", "Actual objects count in writecache", []string{wcShardID, wcStorage}), estimatedSize: newWCGaugeVec("estimated_size_bytes", "Estimated writecache size", []string{wcShardID, wcStorage}), - mode: newShardIDMode(wcSubsystem, "mode", "Writecache mode value"), + mode: newShardIDMode(wcSubsystem, "mode_info", "Writecache mode value"), } }