Skip to content

Commit

Permalink
fix metric name at unit test
Browse files Browse the repository at this point in the history
Signed-off-by: SriKrishna Paparaju <[email protected]>
  • Loading branch information
spaparaju committed Oct 27, 2021
1 parent 7a98e32 commit 017ef78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/store/bucket_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 017ef78

Please sign in to comment.