Fix writecache duration metric #434

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/writecache_metrics_duration into master 2023-06-13 07:18:02 +00:00

View file

@ -167,7 +167,7 @@ func setWriteCacheDuration(m *prometheus.HistogramVec, shardID string, success b
wcSuccess: fmt.Sprintf("%v", success), wcSuccess: fmt.Sprintf("%v", success),
wcStorage: storageType, wcStorage: storageType,
}, },
).Observe(float64(d)) ).Observe(d.Seconds())
} }
func newWCMethodDurationCounter(method string) *prometheus.HistogramVec { func newWCMethodDurationCounter(method string) *prometheus.HistogramVec {