[#17] Add morph client metrics #436

Merged
fyrchik merged 1 commit from ale64bit/frostfs-node:feature/17-morph-client-metrics into master 2023-06-13 11:12:43 +00:00
Member

Signed-off-by: Alejandro Lopez a.lopez@yadro.com
Closes #17

Signed-off-by: Alejandro Lopez <a.lopez@yadro.com> Closes #17
ale64bit requested review from storage-core-committers 2023-06-08 13:44:45 +00:00
ale64bit requested review from storage-core-developers 2023-06-08 13:44:45 +00:00
ale64bit force-pushed feature/17-morph-client-metrics from ed6a13ebc2 to 2a012c9637 2023-06-08 13:49:10 +00:00 Compare
dstepanov-yadro reviewed 2023-06-09 14:59:35 +00:00
@ -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

Looks like this nil-check is not actual
Author
Member

what do you mean?

what do you mean?
dstepanov-yadro approved these changes 2023-06-09 15:00:59 +00:00
acid-ant approved these changes 2023-06-13 05:29:51 +00:00
fyrchik approved these changes 2023-06-13 09:56:46 +00:00
@ -331,1 +332,3 @@
metrics: metrics.NewInnerRingMetrics(),
log: log,
irMetrics: metrics.NewInnerRingMetrics(),
morphMetrics: metrics.NewMorphClientMetrics(),
Owner

I may be missing something, but where do we actually use it?

I may be missing something, but where do we actually use it?
Author
Member

indeed, I forgot it when I moved the initialization to initMorphComponents. Would be nice to lint these somehow. Fixed.

indeed, I forgot it when I moved the initialization to `initMorphComponents`. Would be nice to lint these somehow. Fixed.
Owner

I thought they should be linted, but turns out no, neither structcheck nor unused do this.

I thought they should be linted, but turns out no, neither `structcheck` nor `unused` do this.
@ -0,0 +76,4 @@
morphInvokeTypeLabel: typ,
morphContractLabel: contract,
morphMethodLabel: method,
morphSuccessLabel: fmt.Sprintf("%v", success),
Owner

strconv.FormatBool?

`strconv.FormatBool`?
Author
Member

done. Although I also prefer strconv.FormatBool since there's no room for a type mismatch, we seem to use both ways inconsistently.

done. Although I also prefer `strconv.FormatBool` since there's no room for a type mismatch, we seem to use both ways inconsistently.
Owner
https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/442
fyrchik marked this conversation as resolved
ale64bit force-pushed feature/17-morph-client-metrics from 2a012c9637 to 9688d310bc 2023-06-13 10:06:18 +00:00 Compare
Owner

Please, resolve conflicts.

Please, resolve conflicts.
Author
Member

Please, resolve conflicts.

is master borked?

> Please, resolve conflicts. is `master` borked?
ale64bit force-pushed feature/17-morph-client-metrics from 9688d310bc to 4887f489a1 2023-06-13 11:06:16 +00:00 Compare
Author
Member

Rebased and added MetricsRegister back.

Rebased and added `MetricsRegister` back.
fyrchik merged commit 4887f489a1 into master 2023-06-13 11:12:43 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#436
No description provided.