mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +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.
|
||||
buffer_size: Gauge,
|
||||
/// Current number of ExEx's on the node.
|
||||
num_exexs: Gauge,
|
||||
}
|
||||
|
||||
/// The execution extension manager.
|
||||
@ -200,6 +202,7 @@ impl ExExManager {
|
||||
|
||||
let metrics = ExExManagerMetrics::default();
|
||||
metrics.max_capacity.set(max_capacity as f64);
|
||||
metrics.num_exexs.set(num_exexs as f64);
|
||||
|
||||
Self {
|
||||
exex_handles: handles,
|
||||
|
||||
Reference in New Issue
Block a user