forked from TrueCloudLab/frostfs-node
[#1658] node: Read metrics from meta on startup
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
745f72fff0
commit
9c7b3ce799
5 changed files with 28 additions and 0 deletions
|
@ -274,3 +274,7 @@ func (m objectServiceMetrics) AddGetPayload(ln int) {
|
|||
func (m objectServiceMetrics) AddToObjectCounter(shardID string, delta int) {
|
||||
m.shardMetrics.With(prometheus.Labels{shardIDLabelKey: shardID}).Add(float64(delta))
|
||||
}
|
||||
|
||||
func (m objectServiceMetrics) SetObjectCounter(shardID string, v uint64) {
|
||||
m.shardMetrics.With(prometheus.Labels{shardIDLabelKey: shardID}).Set(float64(v))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue