fix(metrics/swarm): correct metric, name and help

Pull-Request: #4014.
This commit is contained in:
Max Inden 2023-05-31 04:10:41 +02:00 committed by GitHub
parent 5321a4479b
commit 7f865448c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,10 +134,10 @@ impl Metrics {
Family::new_with_constructor(constructor) Family::new_with_constructor(constructor)
}; };
sub_registry.register_with_unit( sub_registry.register_with_unit(
"connections_establishment_duration", "connections_duration",
"Time it took (locally) to establish connections", "Time a connection was alive",
Unit::Seconds, Unit::Seconds,
connections_establishment_duration.clone(), connections_duration.clone(),
); );
Self { Self {