Skip to content

Commit d385f47

Browse files
authored
Upgrade Thanos and Prometheus (#3518)
* Upgraded Prometheus Signed-off-by: Marco Pracucci <[email protected]> * Added option to configure head chunks write buffer size Signed-off-by: Marco Pracucci <[email protected]> * Upgraded Prometheus Signed-off-by: Marco Pracucci <[email protected]>
1 parent a503b30 commit d385f47

File tree

316 files changed

+30096
-5289
lines changed

Some content is hidden

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

316 files changed

+30096
-5289
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* [ENHANCEMENT] Compactor: shuffle tenants before running compaction. #3483
2020
* [ENHANCEMENT] Compactor: wait for a stable ring at startup, when sharding is enabled. #3484
2121
* [ENHANCEMENT] Store-gateway: added `-blocks-storage.bucket-store.index-header-lazy-loading-enabled` to enable index-header lazy loading (experimental). When enabled, index-headers will be mmap-ed only once required by a query and will be automatically released after `-blocks-storage.bucket-store.index-header-lazy-loading-idle-timeout` time of inactivity. #3498
22+
* [ENHANCEMENT] Alertmanager: added metrics `cortex_alertmanager_notification_requests_total` and `cortex_alertmanager_notification_requests_failed_total`. #3518
23+
* [ENHANCEMENT] Ingester: added `-blocks-storage.tsdb.head-chunks-write-buffer-size-bytes` to fine-tune the TSDB head chunks write buffer size when running Cortex blocks storage. #3518
2224
* [BUGFIX] Blocks storage ingester: fixed some cases leading to a TSDB WAL corruption after a partial write to disk. #3423
2325
* [BUGFIX] Blocks storage: Fix the race between ingestion and `/flush` call resulting in overlapping blocks. #3422
2426
* [BUGFIX] Querier: fixed `-querier.max-query-into-future` which wasn't correctly enforced on range queries. #3452

docs/blocks-storage/querier.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,12 @@ blocks_storage:
623623
# CLI flag: -blocks-storage.tsdb.head-compaction-idle-timeout
624624
[head_compaction_idle_timeout: <duration> | default = 1h]
625625
626+
# The write buffer size used by the head chunks mapper. Lower values reduce
627+
# memory utilisation on clusters with a large number of tenants at the cost
628+
# of increased disk I/O operations.
629+
# CLI flag: -blocks-storage.tsdb.head-chunks-write-buffer-size-bytes
630+
[head_chunks_write_buffer_size_bytes: <int> | default = 4194304]
631+
626632
# The number of shards of series to use in TSDB (must be a power of 2).
627633
# Reducing this will decrease memory footprint, but can negatively impact
628634
# performance.

docs/blocks-storage/store-gateway.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,12 @@ blocks_storage:
673673
# CLI flag: -blocks-storage.tsdb.head-compaction-idle-timeout
674674
[head_compaction_idle_timeout: <duration> | default = 1h]
675675
676+
# The write buffer size used by the head chunks mapper. Lower values reduce
677+
# memory utilisation on clusters with a large number of tenants at the cost
678+
# of increased disk I/O operations.
679+
# CLI flag: -blocks-storage.tsdb.head-chunks-write-buffer-size-bytes
680+
[head_chunks_write_buffer_size_bytes: <int> | default = 4194304]
681+
676682
# The number of shards of series to use in TSDB (must be a power of 2).
677683
# Reducing this will decrease memory footprint, but can negatively impact
678684
# performance.

docs/configuration/config-file-reference.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3800,6 +3800,12 @@ tsdb:
38003800
# CLI flag: -blocks-storage.tsdb.head-compaction-idle-timeout
38013801
[head_compaction_idle_timeout: <duration> | default = 1h]
38023802
3803+
# The write buffer size used by the head chunks mapper. Lower values reduce
3804+
# memory utilisation on clusters with a large number of tenants at the cost of
3805+
# increased disk I/O operations.
3806+
# CLI flag: -blocks-storage.tsdb.head-chunks-write-buffer-size-bytes
3807+
[head_chunks_write_buffer_size_bytes: <int> | default = 4194304]
3808+
38033809
# The number of shards of series to use in TSDB (must be a power of 2).
38043810
# Reducing this will decrease memory footprint, but can negatively impact
38053811
# performance.

go.mod

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
1313
github.com/alicebob/miniredis v2.5.0+incompatible
1414
github.com/armon/go-metrics v0.3.3
15-
github.com/aws/aws-sdk-go v1.35.5
15+
github.com/aws/aws-sdk-go v1.35.31
1616
github.com/blang/semver v3.5.0+incompatible
1717
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
1818
github.com/cespare/xxhash v1.1.0
@@ -26,7 +26,7 @@ require (
2626
github.com/gogo/protobuf v1.3.1
2727
github.com/gogo/status v1.0.3
2828
github.com/golang-migrate/migrate/v4 v4.7.0
29-
github.com/golang/protobuf v1.4.2
29+
github.com/golang/protobuf v1.4.3
3030
github.com/golang/snappy v0.0.2
3131
github.com/gorilla/mux v1.7.3
3232
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
@@ -44,26 +44,26 @@ require (
4444
github.com/opentracing-contrib/go-stdlib v1.0.0
4545
github.com/opentracing/opentracing-go v1.2.0
4646
github.com/pkg/errors v0.9.1
47-
github.com/prometheus/alertmanager v0.21.1-0.20200911160112-1fdff6b3f939
48-
github.com/prometheus/client_golang v1.7.1
47+
github.com/prometheus/alertmanager v0.21.1-0.20201106142418-c39b78780054
48+
github.com/prometheus/client_golang v1.8.0
4949
github.com/prometheus/client_model v0.2.0
50-
github.com/prometheus/common v0.14.0
51-
github.com/prometheus/prometheus v1.8.2-0.20201029103703-63be30dceed9
50+
github.com/prometheus/common v0.15.0
51+
github.com/prometheus/prometheus v1.8.2-0.20201119181812-c8f810083d3f
5252
github.com/segmentio/fasthash v0.0.0-20180216231524-a72b379d632e
5353
github.com/sony/gobreaker v0.4.1
5454
github.com/spf13/afero v1.2.2
5555
github.com/stretchr/testify v1.6.1
56-
github.com/thanos-io/thanos v0.13.1-0.20201112171553-05fbe15616c7
56+
github.com/thanos-io/thanos v0.13.1-0.20201119154119-8ba87aeb5fcf
5757
github.com/uber/jaeger-client-go v2.25.0+incompatible
5858
github.com/weaveworks/common v0.0.0-20200914083218-61ffdd448099
5959
go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50
6060
go.etcd.io/etcd v0.5.0-alpha.5.0.20200520232829-54ba9589114f
6161
go.uber.org/atomic v1.7.0
62-
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0
63-
golang.org/x/sync v0.0.0-20200930132711-30421366ff76
62+
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
63+
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9
6464
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e
65-
google.golang.org/api v0.32.0
66-
google.golang.org/grpc v1.32.0
65+
google.golang.org/api v0.35.0
66+
google.golang.org/grpc v1.33.1
6767
gopkg.in/yaml.v2 v2.3.0
6868
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
6969
sigs.k8s.io/yaml v1.2.0
@@ -91,3 +91,19 @@ replace github.com/bradfitz/gomemcache => github.com/themihai/gomemcache v0.0.0-
9191

9292
// Fix a panic (see: https://github.com/opentracing-contrib/go-grpc/pull/12)
9393
replace github.com/opentracing-contrib/go-grpc => github.com/pracucci/go-grpc v0.0.0-20201022134131-ef559b8db645
94+
95+
// Pin github.com/go-openapi versions to match Prometheus alertmanager to avoid
96+
// breaking changing affecting the alertmanager.
97+
replace github.com/go-openapi/errors => github.com/go-openapi/errors v0.19.4
98+
99+
replace github.com/go-openapi/loads => github.com/go-openapi/loads v0.19.5
100+
101+
replace github.com/go-openapi/runtime => github.com/go-openapi/runtime v0.19.15
102+
103+
replace github.com/go-openapi/spec => github.com/go-openapi/spec v0.19.8
104+
105+
replace github.com/go-openapi/strfmt => github.com/go-openapi/strfmt v0.19.5
106+
107+
replace github.com/go-openapi/swag => github.com/go-openapi/swag v0.19.9
108+
109+
replace github.com/go-openapi/validate => github.com/go-openapi/validate v0.19.8

0 commit comments

Comments
 (0)