forked from TrueCloudLab/frostfs-node
[#434] metrics: Fix writecache duration
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>logs-linter
parent
508e2064eb
commit
9bc1a25c07
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue