From 452faa3c893ec31eb09c43008eb503e0f1616857 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Wed, 26 Jun 2024 14:47:16 +0300 Subject: [PATCH] [#1154] ir: Add info metric Signed-off-by: Alexander Chuprov --- internal/metrics/innerring.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/metrics/innerring.go b/internal/metrics/innerring.go index 3e438a01..f6b14a63 100644 --- a/internal/metrics/innerring.go +++ b/internal/metrics/innerring.go @@ -4,6 +4,7 @@ import ( "strconv" "time" + "git.frostfs.info/TrueCloudLab/frostfs-node/misc" "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger" "git.frostfs.info/TrueCloudLab/frostfs-observability/metrics" "github.com/prometheus/client_golang/prometheus" @@ -16,6 +17,7 @@ type InnerRingServiceMetrics struct { eventDuration *prometheus.HistogramVec morphCacheMetrics *morphCacheMetrics logMetrics logger.LogMetrics + appInfo *ApplicationInfo } // NewInnerRingMetrics returns new instance of metrics collectors for inner ring. @@ -46,6 +48,7 @@ func NewInnerRingMetrics() *InnerRingServiceMetrics { health: health, eventDuration: eventDuration, morphCacheMetrics: newMorphCacheMetrics(innerRingNamespace), + appInfo: NewApplicationInfo(misc.Version), logMetrics: logger.NewLogMetrics(innerRingNamespace), } }