Skip to content

Commit

Permalink
fix: use configured unit suffix for histogram sum/count lines as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz authored Jan 31, 2025
1 parent 1e68f09 commit fd74d2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics-exporter-prometheus/src/recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl Inner {
&name,
Some("bucket"),
&labels,
Some(("le", "+Inf")),
Some(("le", "+Inf")),i
histogram.count(),
unit.filter(|_| self.enable_unit_suffix),
);
Expand All @@ -218,7 +218,7 @@ impl Inner {
&labels,
None,
sum,
unit,
unit.filter(|_| self.enable_unit_suffix),
);
write_metric_line::<&str, u64>(
&mut output,
Expand All @@ -227,7 +227,7 @@ impl Inner {
&labels,
None,
count,
unit,
unit.filter(|_| self.enable_unit_suffix),
);
}

Expand Down

0 comments on commit fd74d2c

Please sign in to comment.