Refactor metrics #213
No reviewers
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 milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#213
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:refactoring/object-3610-metrics"
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?
Resolve funlen linters.
a966fe240d
to1a1f8d1c7f
@ -120,3 +30,1 @@
Help: "Accumulated size of all objects in a shard",
}, []string{shardIDLabelKey})
)
var ()
Hm
fixed
@ -138,3 +46,4 @@
}
}
func getListContainersDurationEngCounter() prometheus.Counter {
It feels a bit klunky, what about using
engineMetric("list_containers_duration", "Accumulated duration of engine list containers operations")
at the call site?I think there is no need to duplicate namespace and subsystem in each function and without the it isn't worth to have a separate function.
Also, some of them follow the same pattern both in name and help.
Fixed
@ -95,2 +79,2 @@
Help: "Accumulated get request process duration",
})
return objectServiceMetrics{
getCounter: newMethodCallCounter("get"),
We have duration for all methods, what about combining them together, inside
newMethodCallCounter
?I didn't catch the thought.
duration
andcall counter
are different metrics.Yes, but they all are generic and parametrized by method.
So, maybe not
newMethodCallCounter
, butnewMethodCallMetrics
?Done.
newMethodCallMetrics
- too general, metrics can be different.1a1f8d1c7f
toc8a8765046
c8a8765046
to9172573c54
LGTM
9172573c54
toc6fc3a7f4c
c6fc3a7f4c
to02f2ebd890
@ -136,2 +33,2 @@
containerSize: *containerSize,
payloadSize: *payloadSize,
listContainersDuration: newEngineMethodDurationCounter("list_containers_"),
estimateContainerSizeDuration: newEngineCounter("estimate_container_size_duration", "Accumulated duration of engine container size estimate operations"),
Different word order in name and help.
02f2ebd890
to49142dc9eb
49142dc9eb
to02831d427b