Skip to content

Commit

Permalink
Add more granular buckets for block interval (#110)
Browse files Browse the repository at this point in the history
* Add more granular buckets for block interval

* Done
  • Loading branch information
BrandonWeng authored Apr 3, 2023
1 parent a33937e commit 12e8692
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 44 deletions.
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.

0 comments on commit 12e8692

Please sign in to comment.