Skip to content

Commit

Permalink
prometheus: update to 3.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanasdev000 authored and TinfoilSubmarine committed Dec 16, 2024
1 parent ee26dd4 commit 2133bc9
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 5 deletions.
21 changes: 21 additions & 0 deletions srcpkgs/prometheus/patches/TestDropOldTimeSeries.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
commit 5935d82988b6f4d36ffc7eaf1a954d662d35e837
Author: Joel Beckmeyer <[email protected]>
Date: Mon Dec 16 08:41:50 2024 -0500

fix TestDropOldTimeSeries on 32-bit

Signed-off-by: Joel Beckmeyer <[email protected]>

diff --git a/storage/remote/queue_manager_test.go b/storage/remote/queue_manager_test.go
index 4b7c5a4e9..2dba17832 100644
--- a/storage/remote/queue_manager_test.go
+++ b/storage/remote/queue_manager_test.go
@@ -2073,7 +2073,7 @@ func createTimeseriesWithOldSamples(numSamples, numSeries int, extraLabels ...la
for j := 0; j < numSamples/2; j++ {
sample := record.RefSample{
Ref: chunks.HeadSeriesRef(i),
- T: int64(int(time.Now().UnixMilli()) + j),
+ T: time.Now().UnixMilli() + int64(j),
V: float64(i),
}
samples = append(samples, sample)
Loading

0 comments on commit 2133bc9

Please sign in to comment.