Add metrics for logical size #763
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#763
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
container_size_bytes
should have a labelkind=physical
/kind=logical
container_objects_total
should have labelcid
(and kind too)May be we could reuse
objects_total
metric with shard label, but imo it is better as container_objects_total -- they are used for different purposes.@fyrchik does some migration procedure required? Now logical size is stored.
Also am i right that
container_objects_total
is new metric? Now only object per shard are awailable.What migration do you have in mind? We already store logical capacity of a container
We could also store physical one.
container_objects_total
is a new metricWe need logical sizes for hard quotes, let's just do
container_objects_total
now@fyrchik How about renaming
kind
label withphysical
andlogical
values in the new metriccontainer_objects_total
to, for example,available=true/false
.For example, if container have 5 objects, but 2 of them are inhumed, now counters will be
After change it will be
So
available=true
counter equalskind=logical
counter,available=false
=kind=physical
-kind=logical