Skip to content

Commit 7c234d6

Browse files
authored
chore(l1): register block building metric and dashboard (#4879)
**Motivation** In #4878 we forgot to register the metric so prometheus picks it up <img width="2220" height="338" alt="image" src="https://github.com/user-attachments/assets/83d24e97-9d68-41b3-88f6-cd0fdfb8d626" />
1 parent e06ea7b commit 7c234d6

File tree

2 files changed

+351
-16
lines changed

2 files changed

+351
-16
lines changed

crates/blockchain/metrics/metrics_blocks.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,14 @@ impl MetricsBlocks {
105105
.map_err(|e| MetricsError::PrometheusErr(e.to_string()))?;
106106
r.register(Box::new(self.gigagas.clone()))
107107
.map_err(|e| MetricsError::PrometheusErr(e.to_string()))?;
108+
r.register(Box::new(self.gigagas_block_building.clone()))
109+
.map_err(|e| MetricsError::PrometheusErr(e.to_string()))?;
108110
r.register(Box::new(self.gas_used.clone()))
109111
.map_err(|e| MetricsError::PrometheusErr(e.to_string()))?;
112+
r.register(Box::new(self.block_building_base_fee.clone()))
113+
.map_err(|e| MetricsError::PrometheusErr(e.to_string()))?;
114+
r.register(Box::new(self.block_building_ms.clone()))
115+
.map_err(|e| MetricsError::PrometheusErr(e.to_string()))?;
110116

111117
let encoder = TextEncoder::new();
112118
let metric_families = r.gather();

0 commit comments

Comments
 (0)