[#434] metrics: Fix writecache duration
ci/woodpecker/push/pre-commit Pipeline was successful Details

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
pull/440/head
Dmitrii Stepanov 2023-06-07 17:10:25 +03:00 committed by Evgenii Stratonikov
parent 508e2064eb
commit 9bc1a25c07
1 changed files with 1 additions and 1 deletions

View File

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