Skip to content

Commit a4aad5d

Browse files
yeya24pracucci
andauthored
Bump prometheus and thanos to master (#3000)
* Bump prometheus and thanos to master Signed-off-by: Ben Ye <[email protected]> * add changelog entry Signed-off-by: Ben Ye <[email protected]> * Rebased and fixed CHANGELOG entry ordering Signed-off-by: Marco Pracucci <[email protected]> * Reverted logic to pass userID to pusherAppender just for clarity Signed-off-by: Marco Pracucci <[email protected]> Co-authored-by: Marco Pracucci <[email protected]>
1 parent 3f040e8 commit a4aad5d

File tree

296 files changed

+23792
-5983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+23792
-5983
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* `cortex_ingester_received_files`
88
* `cortex_ingester_received_bytes_total`
99
* `cortex_ingester_sent_bytes_total`
10+
* [CHANGE] Experimental blocks storage: the `operation` label value `getrange` has changed into `get_range` for the metrics `thanos_store_bucket_cache_operation_requests_total` and `thanos_store_bucket_cache_operation_hits_total`. #3000
1011
* [CHANGE] Experimental Delete Series: `/api/v1/admin/tsdb/delete_series` and `/api/v1/admin/tsdb/cancel_delete_request` purger APIs to return status code `204` instead of `200` for success. #2946
1112
* [ENHANCEMENT] Add support for azure storage in China, German and US Government environments. #2988
1213
* [ENHANCEMENT] Query-tee: added a small tolerance to floating point sample values comparison. #2994

go.mod

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/NYTimes/gziphandler v1.1.1
1212
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
1313
github.com/armon/go-metrics v0.3.3
14-
github.com/aws/aws-sdk-go v1.33.5
14+
github.com/aws/aws-sdk-go v1.33.12
1515
github.com/blang/semver v3.5.0+incompatible
1616
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
1717
github.com/cespare/xxhash v1.1.0
@@ -44,19 +44,18 @@ require (
4444
github.com/prometheus/alertmanager v0.21.0
4545
github.com/prometheus/client_golang v1.7.1
4646
github.com/prometheus/client_model v0.2.0
47-
github.com/prometheus/common v0.10.0
48-
github.com/prometheus/prometheus v1.8.2-0.20200722151933-4a8531a64b32
47+
github.com/prometheus/common v0.11.1
48+
github.com/prometheus/prometheus v1.8.2-0.20200811193703-869f1bc587e6
4949
github.com/rafaeljusto/redigomock v0.0.0-20190202135759-257e089e14a1
5050
github.com/segmentio/fasthash v0.0.0-20180216231524-a72b379d632e
5151
github.com/spf13/afero v1.2.2
5252
github.com/stretchr/testify v1.5.1
53-
github.com/thanos-io/thanos v0.13.1-0.20200731083140-69b87607decf
54-
github.com/uber/jaeger-client-go v2.24.0+incompatible
53+
github.com/thanos-io/thanos v0.13.1-0.20200807203500-9b578afb4763
54+
github.com/uber/jaeger-client-go v2.25.0+incompatible
5555
github.com/weaveworks/common v0.0.0-20200625145055-4b1847531bc9
5656
go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50
5757
go.etcd.io/etcd v0.5.0-alpha.5.0.20200520232829-54ba9589114f
5858
go.uber.org/atomic v1.6.0
59-
go.uber.org/zap v1.14.1 // indirect
6059
golang.org/x/net v0.0.0-20200707034311-ab3426394381
6160
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
6261
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e

go.sum

Lines changed: 46 additions & 85 deletions
Large diffs are not rendered by default.

pkg/compactor/compactor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ func createTSDBBlock(t *testing.T, dir string, minT, maxT int64, externalLabels
760760
for i, ts := range []int64{minT, maxT - 1} {
761761
lbls := labels.Labels{labels.Label{Name: "series_id", Value: strconv.Itoa(i)}}
762762

763-
app := db.Appender()
763+
app := db.Appender(context.Background())
764764
_, err := app.Add(lbls, ts, float64(i))
765765
require.NoError(t, err)
766766

pkg/configs/legacy_promql/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func BenchmarkRangeQuery(b *testing.B) {
6060
numIntervals := 8640 + 10000
6161

6262
for s := 0; s < numIntervals; s++ {
63-
a := storage.Appender()
63+
a := storage.Appender(context.Background())
6464
ts := int64(s * 10000) // 10s interval.
6565
for i, metric := range metrics {
6666
err := a.AddFast(refs[i], ts, float64(s))

pkg/configs/legacy_promql/functions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestDeriv(t *testing.T) {
3131
defer storage.Close()
3232
engine := NewEngine(nil, nil, 10, 10*time.Second)
3333

34-
a := storage.Appender()
34+
a := storage.Appender(context.Background())
3535

3636
metric := labels.FromStrings("__name__", "foo")
3737
_, err := a.Add(metric, 1493712816939, 1.0)

pkg/configs/legacy_promql/test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func (t *Test) exec(tc testCommand) error {
421421
t.clear()
422422

423423
case *loadCmd:
424-
app := t.storage.Appender()
424+
app := t.storage.Appender(context.Background())
425425
if err := cmd.append(app); err != nil {
426426
app.Rollback()
427427
return err
@@ -617,8 +617,8 @@ func (a adapter) ChunkQuerier(ctx context.Context, mint, maxt int64) (storage.Ch
617617
}
618618

619619
// Appender returns a new appender against the storage.
620-
func (a adapter) Appender() storage.Appender {
621-
return a.db.Appender()
620+
func (a adapter) Appender(ctx context.Context) storage.Appender {
621+
return a.db.Appender(ctx)
622622
}
623623

624624
// Close closes the storage and all its underlying resources.

pkg/ingester/ingester_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ func (i *Ingester) v2Push(ctx context.Context, req *client.WriteRequest) (*clien
401401
startAppend := time.Now()
402402

403403
// Walk the samples, appending them to the users database
404-
app := db.Appender()
404+
app := db.Appender(ctx)
405405
for _, ts := range req.Timeseries {
406406
// Check if we already have a cached reference for this series. Be aware
407407
// that even if we have a reference it's not guaranteed to be still valid.

pkg/ingester/ingester_v2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ func TestHeadCompactionOnStartup(t *testing.T) {
16921692
l := labels.Labels{{Name: "n", Value: "v"}}
16931693
for i := 0; i < numFullChunks; i++ {
16941694
// Not using db.Appender() as it checks for compaction.
1695-
app := head.Appender()
1695+
app := head.Appender(context.Background())
16961696
_, err := app.Add(l, int64(i)*chunkRange+1, 9.99)
16971697
require.NoError(t, err)
16981698
_, err = app.Add(l, int64(i+1)*chunkRange, 9.99)

pkg/querier/querier_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func mockTSDB(t *testing.T, mint model.Time, samples int, step, chunkOffset time
188188
_ = head.Close()
189189
})
190190

191-
app := head.Appender()
191+
app := head.Appender(context.Background())
192192

193193
l := labels.Labels{
194194
{Name: model.MetricNameLabel, Value: "foo"},

0 commit comments

Comments
 (0)