-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add metrics label for missing val power #113
Conversation
@@ -44,7 +44,7 @@ type Metrics struct { | |||
// Number of validators who did not sign. | |||
MissingValidators metrics.Gauge | |||
// Total power of the missing validators. | |||
MissingValidatorsPower metrics.Gauge | |||
MissingValidatorsPower metrics.Gauge `metrics_labels:"validator_address"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails right now since it's not expecting any labels
sei-tendermint/internal/consensus/state.go
Lines 2254 to 2258 in 1e67899
missingValidatorsPower += val.VotingPower | |
cs.metrics.MissingValidatorsPower.With("validator_address", val.Address.String()).Set(float64(val.VotingPower)) | |
} else { | |
cs.metrics.MissingValidatorsPower.With("validator_address", val.Address.String()).Set(0) | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
@@ -44,7 +44,7 @@ type Metrics struct { | |||
// Number of validators who did not sign. | |||
MissingValidators metrics.Gauge | |||
// Total power of the missing validators. | |||
MissingValidatorsPower metrics.Gauge | |||
MissingValidatorsPower metrics.Gauge `metrics_labels:"validator_address"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
## Describe your changes and provide context Cherry picking changes here: * [\#14168](cosmos/cosmos-sdk#14168) perf: store/cachekv: preallocate kvL in dirtyItems which gets appended too * [\#10024](cosmos/cosmos-sdk#10024) fix!: store/cachekv: reduce growth factor for iterator ranging using binary searches #10024 ## Testing performed to validate your change Ran a cluster ![image](https://user-images.githubusercontent.com/18161326/207636380-1c404827-cdb4-4bdc-aade-bfc0294f6cd4.png)
Describe your changes and provide context
Testing performed to validate your change
Able to start up a local chain after the fix