[#17] Add morph client metrics #436
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#436
Loading…
Reference in a new issue
No description provided.
Delete branch "ale64bit/frostfs-node:feature/17-morph-client-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?
Signed-off-by: Alejandro Lopez a.lopez@yadro.com
Closes #17
ed6a13ebc2
to2a012c9637
@ -31,3 +31,2 @@
s.epochCounter.Store(val)
if s.metrics != nil {
s.metrics.SetEpoch(val)
if s.irMetrics != nil {
Looks like this nil-check is not actual
what do you mean?
@ -331,1 +332,3 @@
metrics: metrics.NewInnerRingMetrics(),
log: log,
irMetrics: metrics.NewInnerRingMetrics(),
morphMetrics: metrics.NewMorphClientMetrics(),
I may be missing something, but where do we actually use it?
indeed, I forgot it when I moved the initialization to
initMorphComponents
. Would be nice to lint these somehow. Fixed.I thought they should be linted, but turns out no, neither
structcheck
norunused
do this.@ -0,0 +76,4 @@
morphInvokeTypeLabel: typ,
morphContractLabel: contract,
morphMethodLabel: method,
morphSuccessLabel: fmt.Sprintf("%v", success),
strconv.FormatBool
?done. Although I also prefer
strconv.FormatBool
since there's no room for a type mismatch, we seem to use both ways inconsistently.#442
2a012c9637
to9688d310bc
Please, resolve conflicts.
is
master
borked?9688d310bc
to4887f489a1
Rebased and added
MetricsRegister
back.