[#424] metrics: Rename mode to mode_info
To follow best practice. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
26b305f82b
commit
69b788a90b
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ func newEngineMetrics() *engineMetrics {
|
||||||
objectCounter: newEngineGaugeVector("objects_total", "Objects counters per shards", []string{shardIDLabelKey, counterTypeLabelKey}),
|
objectCounter: newEngineGaugeVector("objects_total", "Objects counters per shards", []string{shardIDLabelKey, counterTypeLabelKey}),
|
||||||
gc: newGCMetrics(),
|
gc: newGCMetrics(),
|
||||||
writeCache: newWriteCacheMetrics(),
|
writeCache: newWriteCacheMetrics(),
|
||||||
mode: newShardIDMode(engineSubsystem, "mode", "Shard mode"),
|
mode: newShardIDMode(engineSubsystem, "mode_info", "Shard mode"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ func newWriteCacheMetrics() *writeCacheMetrics {
|
||||||
}, []string{wcShardID, wcStorage, wcSuccess, wcOperation}),
|
}, []string{wcShardID, wcStorage, wcSuccess, wcOperation}),
|
||||||
actualCount: newWCGaugeVec("actual_objects_total", "Actual objects count in writecache", []string{wcShardID, wcStorage}),
|
actualCount: newWCGaugeVec("actual_objects_total", "Actual objects count in writecache", []string{wcShardID, wcStorage}),
|
||||||
estimatedSize: newWCGaugeVec("estimated_size_bytes", "Estimated writecache size", []string{wcShardID, wcStorage}),
|
estimatedSize: newWCGaugeVec("estimated_size_bytes", "Estimated writecache size", []string{wcShardID, wcStorage}),
|
||||||
mode: newShardIDMode(wcSubsystem, "mode", "Writecache mode value"),
|
mode: newShardIDMode(wcSubsystem, "mode_info", "Writecache mode value"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue