Skip to content

Commit 7ef74ea

Browse files
authored
Update thanos version to latest main (#5448)
* update thanos version to ca308b0d51a07987671804b4e06487f3b4173b51 Signed-off-by: Ben Ye <[email protected]> * update metrics Signed-off-by: Ben Ye <[email protected]> * change log Signed-off-by: Ben Ye <[email protected]> * fix changelog Signed-off-by: Ben Ye <[email protected]> * pine lib version to prevent test failures Signed-off-by: Ben Ye <[email protected]> * try it Signed-off-by: Ben Ye <[email protected]> * use google.golang.org/protobuf Signed-off-by: Ben Ye <[email protected]> * fix test Signed-off-by: Ben Ye <[email protected]> * update go mod Signed-off-by: Ben Ye <[email protected]> * fix compactor tests Signed-off-by: Ben Ye <[email protected]> * lint Signed-off-by: Ben Ye <[email protected]> * fix test again Signed-off-by: Ben Ye <[email protected]> * update thanos version to include index header fix Signed-off-by: Ben Ye <[email protected]> * add another changelog entry Signed-off-by: Ben Ye <[email protected]> * update Signed-off-by: Ben Ye <[email protected]> * update docs Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 95afd1d commit 7ef74ea

Some content is hidden

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

64 files changed

+3446
-1699
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* [CHANGE] Alertmanager: Validating new fields on the PagerDuty AM config. #5290
1313
* [CHANGE] Ingester: Creating label `native-histogram-sample` on the `cortex_discarded_samples_total` to keep track of discarded native histogram samples. #5289
1414
* [CHANGE] Store Gateway: Rename `cortex_bucket_store_cached_postings_compression_time_seconds` to `cortex_bucket_store_cached_postings_compression_time_seconds_total`. #5431
15+
* [CHANGE] Store Gateway: Rename `cortex_bucket_store_cached_series_fetch_duration_seconds` to `cortex_bucket_store_series_fetch_duration_seconds` and `cortex_bucket_store_cached_postings_fetch_duration_seconds` to `cortex_bucket_store_postings_fetch_duration_seconds`. Add new metric `cortex_bucket_store_chunks_fetch_duration_seconds`. #5448
16+
* [CHANGE] Store Gateway: Remove `idle_timeout`, `max_conn_age`, `pool_size`, `min_idle_conns` fields for Redis index cache and caching bucket. #5448
1517
* [FEATURE] Store Gateway: Add `max_downloaded_bytes_per_request` to limit max bytes to download per store gateway request.
1618
* [FEATURE] Added 2 flags `-alertmanager.alertmanager-client.grpc-max-send-msg-size` and ` -alertmanager.alertmanager-client.grpc-max-recv-msg-size` to configure alert manager grpc client message size limits. #5338
1719
* [FEATURE] Query Frontend: Add `cortex_rejected_queries_total` metric for throttled queries. #5356

docs/blocks-storage/querier.md

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -601,15 +601,6 @@ blocks_storage:
601601
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.master-name
602602
[master_name: <string> | default = ""]
603603
604-
# Maximum number of socket connections.
605-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.pool-size
606-
[pool_size: <int> | default = 100]
607-
608-
# Specifies the minimum number of idle connections, which is useful when
609-
# it is slow to establish new connections.
610-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.min-idle-conns
611-
[min_idle_conns: <int> | default = 10]
612-
613604
# The maximum number of concurrent GetMulti() operations. If set to 0,
614605
# concurrency is unlimited.
615606
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.max-get-multi-concurrency
@@ -640,16 +631,6 @@ blocks_storage:
640631
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.write-timeout
641632
[write_timeout: <duration> | default = 3s]
642633
643-
# Amount of time after which client closes idle connections. Should be
644-
# less than server's timeout. -1 disables idle timeout check.
645-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.idle-timeout
646-
[idle_timeout: <duration> | default = 5m]
647-
648-
# Connection age at which client retires (closes) the connection.
649-
# Default 0 is to not close aged connections.
650-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.max-conn-age
651-
[max_conn_age: <duration> | default = 0s]
652-
653634
# Whether to enable tls for redis connection.
654635
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.tls-enabled
655636
[tls_enabled: <boolean> | default = false]
@@ -760,15 +741,6 @@ blocks_storage:
760741
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.master-name
761742
[master_name: <string> | default = ""]
762743
763-
# Maximum number of socket connections.
764-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.pool-size
765-
[pool_size: <int> | default = 100]
766-
767-
# Specifies the minimum number of idle connections, which is useful when
768-
# it is slow to establish new connections.
769-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.min-idle-conns
770-
[min_idle_conns: <int> | default = 10]
771-
772744
# The maximum number of concurrent GetMulti() operations. If set to 0,
773745
# concurrency is unlimited.
774746
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.max-get-multi-concurrency
@@ -799,16 +771,6 @@ blocks_storage:
799771
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.write-timeout
800772
[write_timeout: <duration> | default = 3s]
801773
802-
# Amount of time after which client closes idle connections. Should be
803-
# less than server's timeout. -1 disables idle timeout check.
804-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.idle-timeout
805-
[idle_timeout: <duration> | default = 5m]
806-
807-
# Connection age at which client retires (closes) the connection.
808-
# Default 0 is to not close aged connections.
809-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.max-conn-age
810-
[max_conn_age: <duration> | default = 0s]
811-
812774
# Whether to enable tls for redis connection.
813775
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.tls-enabled
814776
[tls_enabled: <boolean> | default = false]
@@ -938,15 +900,6 @@ blocks_storage:
938900
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.master-name
939901
[master_name: <string> | default = ""]
940902
941-
# Maximum number of socket connections.
942-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.pool-size
943-
[pool_size: <int> | default = 100]
944-
945-
# Specifies the minimum number of idle connections, which is useful when
946-
# it is slow to establish new connections.
947-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.min-idle-conns
948-
[min_idle_conns: <int> | default = 10]
949-
950903
# The maximum number of concurrent GetMulti() operations. If set to 0,
951904
# concurrency is unlimited.
952905
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.max-get-multi-concurrency
@@ -977,16 +930,6 @@ blocks_storage:
977930
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.write-timeout
978931
[write_timeout: <duration> | default = 3s]
979932
980-
# Amount of time after which client closes idle connections. Should be
981-
# less than server's timeout. -1 disables idle timeout check.
982-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.idle-timeout
983-
[idle_timeout: <duration> | default = 5m]
984-
985-
# Connection age at which client retires (closes) the connection.
986-
# Default 0 is to not close aged connections.
987-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.max-conn-age
988-
[max_conn_age: <duration> | default = 0s]
989-
990933
# Whether to enable tls for redis connection.
991934
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.tls-enabled
992935
[tls_enabled: <boolean> | default = false]

docs/blocks-storage/store-gateway.md

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -688,15 +688,6 @@ blocks_storage:
688688
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.master-name
689689
[master_name: <string> | default = ""]
690690
691-
# Maximum number of socket connections.
692-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.pool-size
693-
[pool_size: <int> | default = 100]
694-
695-
# Specifies the minimum number of idle connections, which is useful when
696-
# it is slow to establish new connections.
697-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.min-idle-conns
698-
[min_idle_conns: <int> | default = 10]
699-
700691
# The maximum number of concurrent GetMulti() operations. If set to 0,
701692
# concurrency is unlimited.
702693
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.max-get-multi-concurrency
@@ -727,16 +718,6 @@ blocks_storage:
727718
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.write-timeout
728719
[write_timeout: <duration> | default = 3s]
729720
730-
# Amount of time after which client closes idle connections. Should be
731-
# less than server's timeout. -1 disables idle timeout check.
732-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.idle-timeout
733-
[idle_timeout: <duration> | default = 5m]
734-
735-
# Connection age at which client retires (closes) the connection.
736-
# Default 0 is to not close aged connections.
737-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.max-conn-age
738-
[max_conn_age: <duration> | default = 0s]
739-
740721
# Whether to enable tls for redis connection.
741722
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.tls-enabled
742723
[tls_enabled: <boolean> | default = false]
@@ -847,15 +828,6 @@ blocks_storage:
847828
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.master-name
848829
[master_name: <string> | default = ""]
849830
850-
# Maximum number of socket connections.
851-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.pool-size
852-
[pool_size: <int> | default = 100]
853-
854-
# Specifies the minimum number of idle connections, which is useful when
855-
# it is slow to establish new connections.
856-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.min-idle-conns
857-
[min_idle_conns: <int> | default = 10]
858-
859831
# The maximum number of concurrent GetMulti() operations. If set to 0,
860832
# concurrency is unlimited.
861833
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.max-get-multi-concurrency
@@ -886,16 +858,6 @@ blocks_storage:
886858
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.write-timeout
887859
[write_timeout: <duration> | default = 3s]
888860
889-
# Amount of time after which client closes idle connections. Should be
890-
# less than server's timeout. -1 disables idle timeout check.
891-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.idle-timeout
892-
[idle_timeout: <duration> | default = 5m]
893-
894-
# Connection age at which client retires (closes) the connection.
895-
# Default 0 is to not close aged connections.
896-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.max-conn-age
897-
[max_conn_age: <duration> | default = 0s]
898-
899861
# Whether to enable tls for redis connection.
900862
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.tls-enabled
901863
[tls_enabled: <boolean> | default = false]
@@ -1025,15 +987,6 @@ blocks_storage:
1025987
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.master-name
1026988
[master_name: <string> | default = ""]
1027989
1028-
# Maximum number of socket connections.
1029-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.pool-size
1030-
[pool_size: <int> | default = 100]
1031-
1032-
# Specifies the minimum number of idle connections, which is useful when
1033-
# it is slow to establish new connections.
1034-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.min-idle-conns
1035-
[min_idle_conns: <int> | default = 10]
1036-
1037990
# The maximum number of concurrent GetMulti() operations. If set to 0,
1038991
# concurrency is unlimited.
1039992
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.max-get-multi-concurrency
@@ -1064,16 +1017,6 @@ blocks_storage:
10641017
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.write-timeout
10651018
[write_timeout: <duration> | default = 3s]
10661019
1067-
# Amount of time after which client closes idle connections. Should be
1068-
# less than server's timeout. -1 disables idle timeout check.
1069-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.idle-timeout
1070-
[idle_timeout: <duration> | default = 5m]
1071-
1072-
# Connection age at which client retires (closes) the connection.
1073-
# Default 0 is to not close aged connections.
1074-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.max-conn-age
1075-
[max_conn_age: <duration> | default = 0s]
1076-
10771020
# Whether to enable tls for redis connection.
10781021
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.tls-enabled
10791022
[tls_enabled: <boolean> | default = false]

docs/configuration/config-file-reference.md

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,15 +1127,6 @@ bucket_store:
11271127
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.master-name
11281128
[master_name: <string> | default = ""]
11291129
1130-
# Maximum number of socket connections.
1131-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.pool-size
1132-
[pool_size: <int> | default = 100]
1133-
1134-
# Specifies the minimum number of idle connections, which is useful when
1135-
# it is slow to establish new connections.
1136-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.min-idle-conns
1137-
[min_idle_conns: <int> | default = 10]
1138-
11391130
# The maximum number of concurrent GetMulti() operations. If set to 0,
11401131
# concurrency is unlimited.
11411132
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.max-get-multi-concurrency
@@ -1166,16 +1157,6 @@ bucket_store:
11661157
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.write-timeout
11671158
[write_timeout: <duration> | default = 3s]
11681159
1169-
# Amount of time after which client closes idle connections. Should be
1170-
# less than server's timeout. -1 disables idle timeout check.
1171-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.idle-timeout
1172-
[idle_timeout: <duration> | default = 5m]
1173-
1174-
# Connection age at which client retires (closes) the connection. Default
1175-
# 0 is to not close aged connections.
1176-
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.max-conn-age
1177-
[max_conn_age: <duration> | default = 0s]
1178-
11791160
# Whether to enable tls for redis connection.
11801161
# CLI flag: -blocks-storage.bucket-store.index-cache.redis.tls-enabled
11811162
[tls_enabled: <boolean> | default = false]
@@ -1286,15 +1267,6 @@ bucket_store:
12861267
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.master-name
12871268
[master_name: <string> | default = ""]
12881269
1289-
# Maximum number of socket connections.
1290-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.pool-size
1291-
[pool_size: <int> | default = 100]
1292-
1293-
# Specifies the minimum number of idle connections, which is useful when
1294-
# it is slow to establish new connections.
1295-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.min-idle-conns
1296-
[min_idle_conns: <int> | default = 10]
1297-
12981270
# The maximum number of concurrent GetMulti() operations. If set to 0,
12991271
# concurrency is unlimited.
13001272
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.max-get-multi-concurrency
@@ -1325,16 +1297,6 @@ bucket_store:
13251297
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.write-timeout
13261298
[write_timeout: <duration> | default = 3s]
13271299
1328-
# Amount of time after which client closes idle connections. Should be
1329-
# less than server's timeout. -1 disables idle timeout check.
1330-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.idle-timeout
1331-
[idle_timeout: <duration> | default = 5m]
1332-
1333-
# Connection age at which client retires (closes) the connection. Default
1334-
# 0 is to not close aged connections.
1335-
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.max-conn-age
1336-
[max_conn_age: <duration> | default = 0s]
1337-
13381300
# Whether to enable tls for redis connection.
13391301
# CLI flag: -blocks-storage.bucket-store.chunks-cache.redis.tls-enabled
13401302
[tls_enabled: <boolean> | default = false]
@@ -1463,15 +1425,6 @@ bucket_store:
14631425
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.master-name
14641426
[master_name: <string> | default = ""]
14651427
1466-
# Maximum number of socket connections.
1467-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.pool-size
1468-
[pool_size: <int> | default = 100]
1469-
1470-
# Specifies the minimum number of idle connections, which is useful when
1471-
# it is slow to establish new connections.
1472-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.min-idle-conns
1473-
[min_idle_conns: <int> | default = 10]
1474-
14751428
# The maximum number of concurrent GetMulti() operations. If set to 0,
14761429
# concurrency is unlimited.
14771430
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.max-get-multi-concurrency
@@ -1502,16 +1455,6 @@ bucket_store:
15021455
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.write-timeout
15031456
[write_timeout: <duration> | default = 3s]
15041457
1505-
# Amount of time after which client closes idle connections. Should be
1506-
# less than server's timeout. -1 disables idle timeout check.
1507-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.idle-timeout
1508-
[idle_timeout: <duration> | default = 5m]
1509-
1510-
# Connection age at which client retires (closes) the connection. Default
1511-
# 0 is to not close aged connections.
1512-
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.max-conn-age
1513-
[max_conn_age: <duration> | default = 0s]
1514-
15151458
# Whether to enable tls for redis connection.
15161459
# CLI flag: -blocks-storage.bucket-store.metadata-cache.redis.tls-enabled
15171460
[tls_enabled: <boolean> | default = false]

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ require (
4343
github.com/pkg/errors v0.9.1
4444
github.com/prometheus/alertmanager v0.25.1-0.20230505130626-263ca5c9438e
4545
github.com/prometheus/client_golang v1.15.1
46-
github.com/prometheus/client_model v0.3.0
47-
github.com/prometheus/common v0.42.0
46+
github.com/prometheus/client_model v0.4.0
47+
github.com/prometheus/common v0.44.0
4848
// Prometheus maps version 2.x.y to tags v0.x.y.
4949
github.com/prometheus/prometheus v0.44.1-0.20230530154238-dfae954dc113
5050
github.com/segmentio/fasthash v1.0.3
@@ -53,7 +53,7 @@ require (
5353
github.com/stretchr/testify v1.8.4
5454
github.com/thanos-io/objstore v0.0.0-20230629211010-ff1b35b9841a
5555
github.com/thanos-io/promql-engine v0.0.0-20230526105742-791d78b260ea
56-
github.com/thanos-io/thanos v0.31.1-0.20230627154113-7cfaf3fe2d43
56+
github.com/thanos-io/thanos v0.31.1-0.20230711160112-df3a5f808726
5757
github.com/uber/jaeger-client-go v2.30.0+incompatible
5858
github.com/weaveworks/common v0.0.0-20221201103051-7c2720a9024d
5959
go.etcd.io/etcd/api/v3 v3.5.8
@@ -79,6 +79,7 @@ require (
7979
require (
8080
github.com/cespare/xxhash/v2 v2.2.0
8181
github.com/google/go-cmp v0.5.9
82+
google.golang.org/protobuf v1.30.0
8283
)
8384

8485
require (
@@ -182,7 +183,7 @@ require (
182183
github.com/prometheus/common/sigv4 v0.1.0 // indirect
183184
github.com/prometheus/exporter-toolkit v0.10.0 // indirect
184185
github.com/prometheus/procfs v0.9.0 // indirect
185-
github.com/redis/rueidis v1.0.2-go1.18 // indirect
186+
github.com/redis/rueidis v1.0.10-go1.18 // indirect
186187
github.com/rs/cors v1.9.0 // indirect
187188
github.com/rs/xid v1.5.0 // indirect
188189
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect
@@ -213,7 +214,7 @@ require (
213214
golang.org/x/crypto v0.9.0 // indirect
214215
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
215216
golang.org/x/mod v0.10.0 // indirect
216-
golang.org/x/oauth2 v0.7.0 // indirect
217+
golang.org/x/oauth2 v0.8.0 // indirect
217218
golang.org/x/sys v0.8.0 // indirect
218219
golang.org/x/text v0.9.0 // indirect
219220
golang.org/x/tools v0.9.1 // indirect
@@ -224,7 +225,6 @@ require (
224225
google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e // indirect
225226
google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e // indirect
226227
google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e // indirect
227-
google.golang.org/protobuf v1.30.0 // indirect
228228
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
229229
gopkg.in/ini.v1 v1.67.0 // indirect
230230
)

0 commit comments

Comments
 (0)