Skip to content

Commit

Permalink
remove block height as label from base fee metric
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 committed Sep 29, 2024
1 parent 65b0852 commit 1c4a027
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/metrics/metrics_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,13 @@ func HistogramEvmEffectiveGasPrice(gasPrice *big.Int) {
)
}

// Gauge for block base fee with label for block height
// Gauge for block base fee
// Metric Name:
//
// sei_evm_block_base_fee
func GaugeEvmBlockBaseFee(baseFee *big.Int, blockHeight int64) {
telemetry.SetGaugeWithLabels(
metrics.SetGauge(
[]string{"sei", "evm", "block", "base", "fee"},
float32(baseFee.Uint64()),
[]metrics.Label{telemetry.NewLabel("block_height", strconv.FormatInt(blockHeight, 10))},
)
}

0 comments on commit 1c4a027

Please sign in to comment.