mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: add a metric for the number of ExEx's on a node (#7632)
This commit is contained in:
@ -127,6 +127,8 @@ pub struct ExExManagerMetrics {
|
|||||||
///
|
///
|
||||||
/// Note that this might be slightly bigger than the maximum capacity in some cases.
|
/// Note that this might be slightly bigger than the maximum capacity in some cases.
|
||||||
buffer_size: Gauge,
|
buffer_size: Gauge,
|
||||||
|
/// Current number of ExEx's on the node.
|
||||||
|
num_exexs: Gauge,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The execution extension manager.
|
/// The execution extension manager.
|
||||||
@ -200,6 +202,7 @@ impl ExExManager {
|
|||||||
|
|
||||||
let metrics = ExExManagerMetrics::default();
|
let metrics = ExExManagerMetrics::default();
|
||||||
metrics.max_capacity.set(max_capacity as f64);
|
metrics.max_capacity.set(max_capacity as f64);
|
||||||
|
metrics.num_exexs.set(num_exexs as f64);
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
exex_handles: handles,
|
exex_handles: handles,
|
||||||
|
|||||||
Reference in New Issue
Block a user