Skip to content
Merged
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
10 changes: 10 additions & 0 deletions crates/apollo_consensus_orchestrator/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ define_metrics!(
LabeledMetricCounter { CONSENSUS_BUILD_PROPOSAL_FAILURE , "consensus_build_proposal_failure", "Number of failures while building a proposal", init = 0, labels = BUILD_PROPOSAL_FAILURE_REASON },
// Proposal validation failure metrics
LabeledMetricCounter { CONSENSUS_VALIDATE_PROPOSAL_FAILURE , "consensus_validate_proposal_failure", "Number of failures while validating a proposal", init = 0, labels = VALIDATE_PROPOSAL_FAILURE_REASON },

// SNIP-35 dynamic gas pricing metrics
MetricGauge { SNIP35_FEE_ACTUAL, "snip35_fee_actual", "The current fee_actual (median of recent fee_proposals sliding window)" },
MetricGauge { SNIP35_FEE_PROPOSAL, "snip35_fee_proposal", "The fee_proposal this node published in the latest block" },
MetricGauge { SNIP35_FEE_TARGET, "snip35_fee_target", "The fee_target computed from the STRK/USD oracle" },
MetricGauge { SNIP35_STRK_USD_RATE, "snip35_strk_usd_rate", "The STRK/USD rate from the oracle" },
}
);

Expand Down Expand Up @@ -100,4 +106,8 @@ pub(crate) fn register_metrics() {
CONSENSUS_BUILD_PROPOSAL_FAILURE.register();
CONSENSUS_VALIDATE_PROPOSAL_FAILURE.register();
CONSENSUS_PROOF_MANAGER_STORE_LATENCY.register();
SNIP35_FEE_ACTUAL.register();
SNIP35_FEE_PROPOSAL.register();
SNIP35_FEE_TARGET.register();
SNIP35_STRK_USD_RATE.register();
}
Loading