Skip to content

Commit 1b867c6

Browse files
authored
Upgrade Prometheus and Thanos version to latest main (#5744)
* upgrade Prometheus and Thanos version to latest main Signed-off-by: Ben Ye <[email protected]> * update modules Signed-off-by: Ben Ye <[email protected]> * update mods again Signed-off-by: Ben Ye <[email protected]> * downgrade grpc version to v1.57.2 Signed-off-by: Ben Ye <[email protected]> * pin kuberesolver v5 Signed-off-by: Ben Ye <[email protected]> * update config docs Signed-off-by: Ben Ye <[email protected]> * update changelog Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 440ab94 commit 1b867c6

File tree

87 files changed

+1880
-410
lines changed

Some content is hidden

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

87 files changed

+1880
-410
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* [ENHANCEMENT] Upgraded Docker base images to `alpine:3.18`. #5684
1414
* [ENHANCEMENT] Index Cache: Multi level cache adds config `max_backfill_items` to cap max items to backfill per async operation. #5686
1515
* [ENHANCEMENT] Query Frontend: Log number of split queries in `query stats` log. #5703
16+
* [ENHANCEMENT] Logging: Added new options for logging HTTP request headers: `-server.log-request-headers` enables logging HTTP request headers, `-server.log-request-headers-exclude-list` allows users to specify headers which should not be logged. #5744
1617
* [BUGFIX] Distributor: Do not use label with empty values for sharding #5717
1718
* [BUGFIX] Query Frontend: queries with negative offset should check whether it is cacheable or not. #5719
1819
* [BUGFIX] Redis Cache: pass `cache_size` config correctly. #5734

docs/configuration/config-file-reference.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4830,10 +4830,20 @@ grpc_tls_config:
48304830
# CLI flag: -server.log-source-ips-regex
48314831
[log_source_ips_regex: <string> | default = ""]
48324832
4833-
# Optionally log requests at info level instead of debug level.
4833+
# Optionally log request headers.
4834+
# CLI flag: -server.log-request-headers
4835+
[log_request_headers: <boolean> | default = false]
4836+
4837+
# Optionally log requests at info level instead of debug level. Applies to
4838+
# request headers as well if server.log-request-headers is enabled.
48344839
# CLI flag: -server.log-request-at-info-level-enabled
48354840
[log_request_at_info_level_enabled: <boolean> | default = false]
48364841
4842+
# Comma separated list of headers to exclude from loggin. Only used if
4843+
# server.log-request-headers is true.
4844+
# CLI flag: -server.log-request-headers-exclude-list
4845+
[log_request_exclude_headers_list: <string> | default = ""]
4846+
48374847
# Base path to serve all API routes from (e.g. /v1/)
48384848
# CLI flag: -server.path-prefix
48394849
[http_path_prefix: <string> | default = ""]

go.mod

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ require (
4646
github.com/prometheus/client_model v0.5.0
4747
github.com/prometheus/common v0.45.1-0.20231122191551-832cd6e99f99
4848
// Prometheus maps version 2.x.y to tags v0.x.y.
49-
github.com/prometheus/prometheus v0.48.1-0.20240115084306-17920623e7cd
49+
github.com/prometheus/prometheus v0.49.0-rc.2.0.20240122173321-c095ba24f274
5050
github.com/segmentio/fasthash v1.0.3
5151
github.com/sony/gobreaker v0.5.0
5252
github.com/spf13/afero v1.9.5
5353
github.com/stretchr/testify v1.8.4
5454
github.com/thanos-io/objstore v0.0.0-20240116185442-6ecabdddaab1
5555
github.com/thanos-io/promql-engine v0.0.0-20240115075159-7de619aae856
56-
github.com/thanos-io/thanos v0.33.1-0.20240115194623-324846f66d5d
56+
github.com/thanos-io/thanos v0.33.1-0.20240122182532-e215fa599b4a
5757
github.com/uber/jaeger-client-go v2.30.0+incompatible
58-
github.com/weaveworks/common v0.0.0-20221201103051-7c2720a9024d
58+
github.com/weaveworks/common v0.0.0-20230728070032-dd9e68f319d5
5959
go.etcd.io/etcd/api/v3 v3.5.11
6060
go.etcd.io/etcd/client/pkg/v3 v3.5.9
6161
go.etcd.io/etcd/client/v3 v3.5.7
@@ -67,7 +67,7 @@ require (
6767
go.opentelemetry.io/otel/sdk v1.21.0
6868
go.opentelemetry.io/otel/trace v1.21.0
6969
go.uber.org/atomic v1.11.0
70-
golang.org/x/net v0.19.0
70+
golang.org/x/net v0.20.0
7171
golang.org/x/sync v0.5.0
7272
golang.org/x/time v0.5.0
7373
google.golang.org/grpc v1.59.0
@@ -80,7 +80,7 @@ require (
8080
github.com/VictoriaMetrics/fastcache v1.12.1
8181
github.com/cespare/xxhash/v2 v2.2.0
8282
github.com/google/go-cmp v0.6.0
83-
github.com/sercand/kuberesolver v2.4.0+incompatible
83+
github.com/sercand/kuberesolver/v4 v4.0.0
8484
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb
8585
google.golang.org/protobuf v1.31.0
8686
)
@@ -200,6 +200,7 @@ require (
200200
github.com/shurcooL/httpfs v0.0.0-20230704072500-f1e31cf0ba5c // indirect
201201
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect
202202
github.com/sirupsen/logrus v1.9.3 // indirect
203+
github.com/soheilhy/cmux v0.1.5 // indirect
203204
github.com/stretchr/objx v0.5.0 // indirect
204205
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
205206
github.com/vimeo/galaxycache v0.0.0-20210323154928-b7e5d71c067a // indirect
@@ -223,10 +224,10 @@ require (
223224
go.uber.org/zap v1.21.0 // indirect
224225
go4.org/intern v0.0.0-20230525184215-6c62f75575cb // indirect
225226
go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2 // indirect
226-
golang.org/x/crypto v0.17.0 // indirect
227+
golang.org/x/crypto v0.18.0 // indirect
227228
golang.org/x/mod v0.14.0 // indirect
228229
golang.org/x/oauth2 v0.15.0 // indirect
229-
golang.org/x/sys v0.15.0 // indirect
230+
golang.org/x/sys v0.16.0 // indirect
230231
golang.org/x/text v0.14.0 // indirect
231232
golang.org/x/tools v0.16.0 // indirect
232233
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
@@ -273,3 +274,6 @@ replace github.com/google/gnostic => github.com/googleapis/gnostic v0.6.9
273274
replace gopkg.in/alecthomas/kingpin.v2 => github.com/alecthomas/kingpin v1.3.8-0.20210301060133-17f40c25f497
274275

275276
replace github.com/sercand/kuberesolver => github.com/sercand/kuberesolver/v5 v5.1.1
277+
278+
// Pin kuberesolver/v5 to support new grpc version. Need to upgrade kuberesolver version on weaveworks/common.
279+
replace github.com/sercand/kuberesolver/v4 => github.com/sercand/kuberesolver/v5 v5.1.1

0 commit comments

Comments
 (0)