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

Add more granular buckets for block interval #110

Merged
merged 2 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 47 additions & 41 deletions internal/consensus/metrics.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions internal/consensus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type Metrics struct {
// Total power of the byzantine validators.
ByzantineValidatorsPower metrics.Gauge

// Time between this and the last block.
BlockIntervalSeconds metrics.Histogram
// Time in seconds between this and the last block.
BlockIntervalSeconds metrics.Histogram `metrics_bucketsizes:".3, .5, 1, 1.5, 2, 5, 10"`

// Number of transactions.
NumTxs metrics.Gauge
Expand Down Expand Up @@ -82,9 +82,16 @@ type Metrics struct {
// was relevant to the block the node is trying to gather or not.
BlockGossipPartsReceived metrics.Counter `metrics_labels:"matches_current"`

// Number of proposal blocks created on propose received.
ProposalBlockCreatedOnPropose metrics.Counter `metrics_labels:"success"`

// Number of txs in a proposal.
ProposalTxs metrics.Gauge

// Number of missing txs when trying to create proposal.
ProposalMissingTxs metrics.Gauge

//Number of missing txs when a proposal is received
MissingTxs metrics.Gauge `metrics_labels:"proposer_address"`

// QuroumPrevoteMessageDelay is the interval in seconds between the proposal
Expand Down
3 changes: 2 additions & 1 deletion internal/state/metrics.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.