Skip to content

Commit

Permalink
feat: add a metric for the number of ExEx's on a node (#7632)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnerZheng committed Apr 14, 2024
1 parent 4d79967 commit 4d175cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/exex/src/manager.rs
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4d175cb

Please sign in to comment.