Skip to content

Commit

Permalink
Merge pull request #2493 from jacderida/fix-networking_metric_names
Browse files Browse the repository at this point in the history
fix: use `ant_networking` for metrics prefix
  • Loading branch information
jacderida authored Dec 4, 2024
2 parents 4e116bb + db222e5 commit 58e940e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ant-networking/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl NetworkMetricsRecorder {
let libp2p_metrics = Libp2pMetrics::new(&mut registries.standard_metrics);
let sub_registry = registries
.standard_metrics
.sub_registry_with_prefix("ant-networking");
.sub_registry_with_prefix("ant_networking");

let records_stored = Gauge::default();
sub_registry.register(
Expand Down
2 changes: 1 addition & 1 deletion ant-node/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl NodeMetricsRecorder {

let sub_registry = registries
.standard_metrics
.sub_registry_with_prefix("sn_node");
.sub_registry_with_prefix("ant_node");

let put_record_ok = Family::default();
sub_registry.register(
Expand Down

0 comments on commit 58e940e

Please sign in to comment.