From 4ab8fdc1d4b576b56652c5c54b0dfbebec2ebd18 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Tue, 5 Dec 2023 22:01:19 +0000 Subject: [PATCH] build_info value should be 1 --- linkerd/app/core/src/build_info.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linkerd/app/core/src/build_info.rs b/linkerd/app/core/src/build_info.rs index 3dc75b7718..66b19329c7 100644 --- a/linkerd/app/core/src/build_info.rs +++ b/linkerd/app/core/src/build_info.rs @@ -19,7 +19,9 @@ pub struct BuildInfo { impl BuildInfo { pub fn metric(&self) -> prom::Family { - let fam = prom::Family::::default(); + let fam = prom::Family::::new_with_constructor(|| { + prom::ConstGauge::new(1) + }); let _ = fam.get_or_create(self); fam }