Skip to content

Commit 7f86544

Browse files
authored
fix(metrics/swarm): correct metric, name and help
Pull-Request: #4014.
1 parent 5321a44 commit 7f86544

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/metrics/src/swarm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ impl Metrics {
134134
Family::new_with_constructor(constructor)
135135
};
136136
sub_registry.register_with_unit(
137-
"connections_establishment_duration",
138-
"Time it took (locally) to establish connections",
137+
"connections_duration",
138+
"Time a connection was alive",
139139
Unit::Seconds,
140-
connections_establishment_duration.clone(),
140+
connections_duration.clone(),
141141
);
142142

143143
Self {

0 commit comments

Comments
 (0)