From 20542b51c30bd20ed9319e030c19c3a883cdb53f Mon Sep 17 00:00:00 2001 From: sinkingpoint Date: Tue, 21 Dec 2021 10:23:06 +1100 Subject: [PATCH] Send the metric without the clear label into the series This commit fixes #3 in that we properly remove the clear mode before sending into the existing metric family --- src/aggregator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aggregator.rs b/src/aggregator.rs index 8237f5f..3a19aa7 100644 --- a/src/aggregator.rs +++ b/src/aggregator.rs @@ -207,7 +207,7 @@ impl AggregationFamily { { None => { // Just add the metric if its a new labelset - self.base_family.add_sample(metric)? + self.base_family.add_sample(cmp_metric)? }, Some(s) => { // Otherwise we have to merge