Skip to content

Commit

Permalink
Correctly increment downsample metrics (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrco authored and brancz committed Jun 18, 2019
1 parent e1d3b62 commit d97e310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/thanos/downsample.go
Expand Up @@ -215,10 +215,10 @@ func downsampleBucket(
continue
}
if err := processDownsampling(ctx, logger, bkt, m, dir, 5*60*1000); err != nil {
metrics.downsampleFailures.WithLabelValues(compact.GroupKey(*m))
metrics.downsampleFailures.WithLabelValues(compact.GroupKey(*m)).Inc()
return errors.Wrap(err, "downsampling to 5 min")
}
metrics.downsamples.WithLabelValues(compact.GroupKey(*m))
metrics.downsamples.WithLabelValues(compact.GroupKey(*m)).Inc()

case 5 * 60 * 1000:
missing := false
Expand Down

0 comments on commit d97e310

Please sign in to comment.