Skip to content

Commit

Permalink
Send the metric without the clear label into the series
Browse files Browse the repository at this point in the history
This commit fixes #3 in that we properly remove the clear mode before sending
into the existing metric family
  • Loading branch information
sinkingpoint committed Dec 20, 2021
1 parent 1ac8cf8 commit 20542b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20542b5

Please sign in to comment.