Skip to content

Commit b40c117

Browse files
codesomepracucci
andauthored
Upgrade Thanos and Prometheus (#2604)
* Upgrade Thanos and Prometheus Signed-off-by: Ganesh Vernekar <[email protected]> * Fix review comments Signed-off-by: Ganesh Vernekar <[email protected]> * Fix review comments Signed-off-by: Ganesh Vernekar <[email protected]> * Move etcd to v3.4.9 and address reviews Signed-off-by: Ganesh Vernekar <[email protected]> * Fix lint Signed-off-by: Ganesh Vernekar <[email protected]> * Reviews Signed-off-by: Ganesh Vernekar <[email protected]> * Update pkg/querier/blocks_store_balanced_set.go Signed-off-by: Marco Pracucci <[email protected]> Co-authored-by: Marco Pracucci <[email protected]>
1 parent 75c3c54 commit b40c117

File tree

551 files changed

+64533
-121055
lines changed

Some content is hidden

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

551 files changed

+64533
-121055
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44

55
* [CHANGE] Query Frontend now uses Round Robin to choose a tenant queue to service next. #2553
6+
* [CHANGE] `-promql.lookback-delta` is now deprecated and has been replaced by `-querier.lookback-delta` along with `lookback_delta` entry under `querier` in the config file. `-promql.lookback-delta` will be removed in v1.4.0. #2604
67
* [FEATURE] TLS config options added for GRPC clients in Querier (Query-frontend client & Ingester client), Ruler, Store Gateway, as well as HTTP client in Config store client. #2502
78
* [ENHANCEMENT] Experimental TSDB: added the following metrics to the ingester: #2580 #2583 #2589
89
* `cortex_ingester_tsdb_appender_add_duration_seconds`
@@ -30,6 +31,9 @@
3031
* [ENHANCEMENT] Experimental TSDB: added per-tenant blocks sharding support in the compactor, in order to parallelize blocks compaction for a single tenant in a single node. Sharding can be enabled via `-compactor.per-tenant-num-shards` while the parallelization can be controlled with `-compactor.per-tenant-shards-concurrency`. #2599
3132
* [ENHANCEMENT] Ruler: Automatically remove unhealthy rulers from the ring. #2587
3233
* [ENHANCEMENT] `query-tee` supports `/metadata`, `/alerts`, and `/rules` #2600
34+
* [ENHANCEMENT] Thanos and Prometheus upgraded to [806479182a6b](https://github.com/thanos-io/thanos/commit/806479182a6b) and [cd73b3d33e06](https://github.com/prometheus/prometheus/commit/cd73b3d33e06) respectively. #2604
35+
* TSDB now supports isolation of append and queries.
36+
* TSDB now holds less WAL files after Head Truncation.
3337
* [BUGFIX] Ruler: Ensure temporary rule files with special characters are properly mapped and cleaned up. #2506
3438
* [BUGFIX] Fixes #2411, Ensure requests are properly routed to the prometheus api embedded in the query if `-server.path-prefix` is set. #2372
3539
* [BUGFIX] Experimental TSDB: fixed chunk data corruption when querying back series using the experimental blocks storage. #2400
@@ -1074,4 +1078,4 @@ This release has several exciting features, the most notable of them being setti
10741078
* `ha-tracker.cluster` is now `distributor.ha-tracker.cluster`
10751079
* [FEATURE] You can specify "heap ballast" to reduce Go GC Churn #1489
10761080
* [BUGFIX] HA Tracker no longer always makes a request to Consul/Etcd when a request is not from the active replica #1516
1077-
* [BUGFIX] Queries are now correctly cancelled by the query-frontend #1508
1081+
* [BUGFIX] Queries are now correctly cancelled by the query-frontend #1508

docs/configuration/config-file-reference.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,11 @@ The `querier_config` configures the Cortex querier.
640640
# CLI flag: -querier.active-query-tracker-dir
641641
[active_query_tracker_dir: <string> | default = "./active-query-tracker"]
642642
643+
# Time since the last sample after which a time series is considered stale and
644+
# ignored by expression evaluations.
645+
# CLI flag: -querier.lookback-delta
646+
[lookback_delta: <duration> | default = 5m]
647+
643648
# Comma separated list of store-gateway addresses in DNS Service Discovery
644649
# format. This option should be set when using the experimental blocks storage
645650
# and the store-gateway sharding is disabled (when enabled, the store-gateway

go.mod

Lines changed: 12 additions & 11 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.0
14-
github.com/aws/aws-sdk-go v1.27.0
14+
github.com/aws/aws-sdk-go v1.29.18
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
@@ -28,7 +28,7 @@ require (
2828
github.com/gomodule/redigo v2.0.0+incompatible
2929
github.com/gorilla/mux v1.7.3
3030
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
31-
github.com/hashicorp/consul/api v1.3.0
31+
github.com/hashicorp/consul/api v1.4.0
3232
github.com/hashicorp/go-cleanhttp v0.5.1
3333
github.com/hashicorp/go-sockaddr v1.0.2
3434
github.com/hashicorp/memberlist v0.1.5
@@ -42,25 +42,26 @@ require (
4242
github.com/opentracing/opentracing-go v1.1.1-0.20200124165624-2876d2018785
4343
github.com/pkg/errors v0.9.1
4444
github.com/prometheus/alertmanager v0.20.0
45-
github.com/prometheus/client_golang v1.5.0
45+
github.com/prometheus/client_golang v1.5.1
4646
github.com/prometheus/client_model v0.2.0
4747
github.com/prometheus/common v0.9.1
48-
github.com/prometheus/prometheus v1.8.2-0.20200213233353-b90be6f32a33
48+
github.com/prometheus/prometheus v1.8.2-0.20200407102557-cd73b3d33e06
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.4.0
53-
github.com/thanos-io/thanos v0.12.3-0.20200518091645-762eb5e1dfab
53+
github.com/thanos-io/thanos v0.12.3-0.20200520075802-806479182a6b
5454
github.com/uber/jaeger-client-go v2.20.1+incompatible
5555
github.com/weaveworks/common v0.0.0-20200512154658-384f10054ec5
56-
go.etcd.io/bbolt v1.3.3
57-
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
58-
go.uber.org/atomic v1.5.1
59-
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b
56+
go.etcd.io/bbolt v1.3.4
57+
go.etcd.io/etcd v0.5.0-alpha.5.0.20200520232829-54ba9589114f
58+
go.uber.org/atomic v1.6.0
59+
go.uber.org/zap v1.14.1 // indirect
60+
golang.org/x/net v0.0.0-20200301022130-244492dfa37a
6061
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
6162
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
62-
google.golang.org/api v0.14.0
63-
google.golang.org/grpc v1.26.0
63+
google.golang.org/api v0.20.0
64+
google.golang.org/grpc v1.27.1
6465
gopkg.in/yaml.v2 v2.2.8
6566
sigs.k8s.io/yaml v1.1.0
6667
)

0 commit comments

Comments
 (0)