diff --git a/core/blockchain.go b/core/blockchain.go index 51387a13f..cb752e1f6 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -74,6 +74,7 @@ var ( blockInsertMgaspsGauge = metrics.NewRegisteredGauge("chain/insert/mgasps", nil) chainInfoGauge = metrics.NewRegisteredGaugeInfo("chain/info", nil) + mGasPsGauge = metrics.NewRegisteredGauge("chain/process/gas", nil) accountReadTimer = metrics.NewRegisteredTimer("chain/account/reads", nil) accountHashTimer = metrics.NewRegisteredTimer("chain/account/hashes", nil) diff --git a/core/blockchain_insert.go b/core/blockchain_insert.go index 263074275..ad96d01b9 100644 --- a/core/blockchain_insert.go +++ b/core/blockchain_insert.go @@ -64,6 +64,7 @@ func (st *insertStats) report(chain []*types.Block, index int, snapDiffItems, sn "blocks", st.processed, "txs", txs, "blobs", blobs, "mgas", float64(st.usedGas) / 1000000, "elapsed", common.PrettyDuration(elapsed), "mgasps", mgasps, } + mGasPsGauge.Update(int64(mgasps)) blockInsertMgaspsGauge.Update(int64(mgasps)) if timestamp := time.Unix(int64(end.Time()), 0); time.Since(timestamp) > time.Minute { context = append(context, []interface{}{"age", common.PrettyAge(timestamp)}...)