Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tss): remove keygen/sign metrics to avoid metrics bloat #1317

Merged
merged 7 commits into from
Feb 19, 2022

Conversation

jcs47
Copy link
Contributor

@jcs47 jcs47 commented Feb 15, 2022

Description

Closes #1298

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues
  • Tag type of change
  • Upgrade handler

Steps to Test

Expected Behaviour

Other Notes

@haiyizxx haiyizxx added the next release Required for the next release label Feb 18, 2022
x/tss/abci.go Outdated
Comment on lines 127 to 130
// sign participation
telemetry.SetGaugeWithLabels([]string{types.ModuleName, "sign", "participation"},
float32(len(k.GetSignParticipants(ctx, info.SigID))), []metrics.Label{telemetry.NewLabel("keyID", string(info.KeyID))})

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this still going to bloat based on the key ID?

Copy link
Contributor Author

@jcs47 jcs47 Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly, but keygen participation was also using keyID as a label, yet apparently wasn't causing any major issue. So I decided to preserve keyID for sign participation, and remove keyID from keygen participation. Nonetheless, if we find that sign participation metrics still result in bloat, we can completely remove them in an upcoming patch without having a consensus-breaking change (since those metrics are published via the end blocker and do nto modify the state).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not remove it now? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it seems unanimous that these should be removed, I did just that

@jcs47 jcs47 added the bug Something isn't working label Feb 18, 2022
@jcs47 jcs47 changed the title fix(tss): abridge keygen/sign metrics to avoid metrics bloat fix(tss): remove keygen/sign metrics to avoid metrics bloat Feb 18, 2022
@jcs47 jcs47 merged commit d1a2416 into main Feb 19, 2022
@jcs47 jcs47 deleted the abridged_tss_metrics branch February 19, 2022 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next release Required for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus metrics bloat in axelar_tss_sign_participation
4 participants