From 97016d697b541242661ad15438468fd1928dd913 Mon Sep 17 00:00:00 2001 From: John Belmonte Date: Wed, 15 Jul 2020 15:15:38 +0900 Subject: [PATCH] fix increment of thanos_compact_downsample_total counter `thanos_compact_downsample_total` metric was not incremented for ResLevel1 --- cmd/thanos/downsample.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thanos/downsample.go b/cmd/thanos/downsample.go index 046855d508b..e3d027746eb 100644 --- a/cmd/thanos/downsample.go +++ b/cmd/thanos/downsample.go @@ -234,7 +234,7 @@ func downsampleBucket( metrics.downsampleFailures.WithLabelValues(compact.DefaultGroupKey(m.Thanos)) return errors.Wrap(err, "downsampling to 60 min") } - metrics.downsamples.WithLabelValues(compact.DefaultGroupKey(m.Thanos)) + metrics.downsamples.WithLabelValues(compact.DefaultGroupKey(m.Thanos)).Inc() } } return nil