From 017ef782d62f796e6bcaf7844f6ab1b7a7ef949a Mon Sep 17 00:00:00 2001 From: SriKrishna Paparaju Date: Wed, 27 Oct 2021 16:41:48 -0400 Subject: [PATCH] fix metric name at unit test Signed-off-by: SriKrishna Paparaju --- pkg/store/bucket_e2e_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/store/bucket_e2e_test.go b/pkg/store/bucket_e2e_test.go index 806b7bb26b0..e1dd747315d 100644 --- a/pkg/store/bucket_e2e_test.go +++ b/pkg/store/bucket_e2e_test.go @@ -215,8 +215,8 @@ func prepareStoreWithTestBlocks(t testing.TB, dir string, bkt objstore.Bucket, m time.Sleep(time.Second * 1) testutil.Ok(t, store.SyncBlocks(ctx)) - // Get the value of the metric 'thanos_bucket_store_blocks_last_loaded' to capture the timestamp of the last loaded block. - m := gatherFamily(t, reg, "thanos_bucket_store_blocks_last_loaded") + // Get the value of the metric 'thanos_bucket_store_blocks_last_loaded_timestamp_seconds' to capture the timestamp of the last loaded block. + m := gatherFamily(t, reg, "thanos_bucket_store_blocks_last_loaded_timestamp_seconds") lastUploaded := time.Unix(int64(m.Metric[0].Gauge.GetValue()), 0) if lastUploaded.Before(start) {