Versions in this module Expand all Collapse all v1 v1.12.2 Mar 3, 2025 Changes in this version + const GasLabel + const ResourceLabel + const ValidatorsLabel + type Block struct + AccruedValidatorFees uint64 + ActiveL1Validators int + Block block.Block + GasConsumed gas.Gas + GasPrice gas.Price + GasState gas.State + ValidatorExcess gas.Gas + ValidatorPrice gas.Price + type Metrics interface + AddValidatorSetsDuration func(time.Duration) + AddValidatorSetsHeightDiff func(uint64) + IncValidatorSetsCached func() + IncValidatorSetsCreated func() + MarkAccepted func(Block) error + SetLocalStake func(uint64) + SetTimeUntilSubnetUnstake func(subnetID ids.ID, timeUntilUnstake time.Duration) + SetTimeUntilUnstake func(time.Duration) + SetTotalStake func(uint64) + var Noop Metrics = noopMetrics{} + func New(registerer prometheus.Registerer) (Metrics, error)