Skip to content

Commit

Permalink
Fix downsampler debug log (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-p authored and simonswine committed Feb 15, 2024
1 parent 47bc9ad commit 6ac26eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/phlaredb/downsample/downsample.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ func NewDownsampler(path string, logger log.Logger) (*Downsampler, error) {
func (d *Downsampler) flush(s *state, w *profilesWriter, c downsampleConfig) error {
level.Debug(d.logger).Log(
"msg", "flushing downsampled profile",
"interval", c.interval,
"aggregation", c.aggregation,
"interval", c.interval.shortName,
"aggregation", c.aggregation.name,
"sourceProfileCount", s.profileCount,
"sampleCount", len(s.values))
outputSamplesHistogram.WithLabelValues(c.interval.shortName).Observe(float64(len(s.values)))
Expand Down

0 comments on commit 6ac26eb

Please sign in to comment.