Skip to content

Commit 750abde

Browse files
authored
Merge pull request cortexproject#42 from aws-observability/prerelease/090988c40f3eec21623713dd4403b3bbd46175c6
Prerelease/090988c40f3eec21623713dd4403b3bbd46175c6
2 parents 1cfb591 + 0f9e696 commit 750abde

File tree

656 files changed

+52881
-22240
lines changed

Some content is hidden

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

656 files changed

+52881
-22240
lines changed

.github/workflows/custom-aws-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
needs: configure
2222
runs-on: [self-hosted, prod]
2323
container:
24-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
24+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
2525
env:
2626
ECR: ${{ env.ECR }}
2727
ORIGINAL_USER: ${{ needs.configure.outputs.containerUser }}
@@ -68,7 +68,7 @@ jobs:
6868
needs: configure
6969
runs-on: [self-hosted, prod]
7070
container:
71-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
71+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
7272
env:
7373
ECR: ${{ env.ECR }}
7474
ORIGINAL_USER: ${{ needs.configure.outputs.containerUser }}
@@ -93,7 +93,7 @@ jobs:
9393
needs: configure
9494
runs-on: [self-hosted, prod]
9595
container:
96-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
96+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
9797
env:
9898
ECR: ${{ env.ECR }}
9999
ORIGINAL_USER: ${{ needs.configure.outputs.containerUser }}
@@ -171,7 +171,7 @@ jobs:
171171
run: |
172172
touch build-image/.uptodate
173173
MIGRATIONS_DIR=$(pwd)/cmd/cortex/migrations
174-
make BUILD_IMAGE=quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6 TTY='' configs-integration-test
174+
make BUILD_IMAGE=quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f TTY='' configs-integration-test
175175
integration:
176176
needs: integration-configs-db
177177
runs-on: [self-hosted, prod]

.github/workflows/custom-aws-prerelease-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
needs: configure
2323
runs-on: [self-hosted, prod]
2424
container:
25-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
25+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
2626
env:
2727
ECR: ${{ env.ECR }}
2828
ORIGINAL_USER: ${{ needs.configure.outputs.containerUser }}
@@ -69,7 +69,7 @@ jobs:
6969
needs: configure
7070
runs-on: [self-hosted, prod]
7171
container:
72-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
72+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
7373
env:
7474
ECR: ${{ env.ECR }}
7575
ORIGINAL_USER: ${{ needs.configure.outputs.containerUser }}
@@ -94,7 +94,7 @@ jobs:
9494
needs: configure
9595
runs-on: [self-hosted, prod]
9696
container:
97-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
97+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
9898
env:
9999
ECR: ${{ env.ECR }}
100100
ORIGINAL_USER: ${{ needs.configure.outputs.containerUser }}
@@ -172,7 +172,7 @@ jobs:
172172
run: |
173173
touch build-image/.uptodate
174174
MIGRATIONS_DIR=$(pwd)/cmd/cortex/migrations
175-
make BUILD_IMAGE=quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6 TTY='' configs-integration-test
175+
make BUILD_IMAGE=quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f TTY='' configs-integration-test
176176
integration:
177177
needs: integration-configs-db
178178
runs-on: [self-hosted, prod]

CHANGELOG.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,55 @@
22

33
## master / unreleased
44

5+
* [CHANGE] Memberlist: Expose default configuration values to the command line options. Note that setting these explicitly to zero will no longer cause the default to be used. If the default is desired, then do set the option. The following are affected: #4276
6+
- `-memberlist.stream-timeout`
7+
- `-memberlist.retransmit-factor`
8+
- `-memberlist.pull-push-interval`
9+
- `-memberlist.gossip-interval`
10+
- `-memberlist.gossip-nodes`
11+
- `-memberlist.gossip-to-dead-nodes-time`
12+
- `-memberlist.dead-node-reclaim-time`
13+
* [FEATURE] Ruler: Add new `-ruler.query-stats-enabled` which when enabled will report the `cortex_ruler_query_seconds_total` as a per-user metric that tracks the sum of the wall time of executing queries in the ruler in seconds. #4317
14+
* [FEATURE] Query Frontend: Add `cortex_query_fetched_series_total` and `cortex_query_fetched_chunks_bytes_total` per-user counters to expose the number of series and bytes fetched as part of queries. These metrics can be enabled with the `-frontend.query-stats-enabled` flag (or its respective YAML config option `query_stats_enabled`). #4343
15+
* [FEATURE] AlertManager: Add support for SNS Receiver. #4382
16+
* [CHANGE] Update Go version to 1.16.6. #4362
517
* [CHANGE] Querier / ruler: Change `-querier.max-fetched-chunks-per-query` configuration to limit to maximum number of chunks that can be fetched in a single query. The number of chunks fetched by ingesters AND long-term storare combined should not exceed the value configured on `-querier.max-fetched-chunks-per-query`. #4260
18+
* [CHANGE] Memberlist: the `memberlist_kv_store_value_bytes` has been removed due to values no longer being stored in-memory as encoded bytes. #4345
19+
* [CHANGE] Prevent path traversal attack from users able to control the HTTP header `X-Scope-OrgID`. #4375 (CVE-2021-36157)
20+
* Users only have control of the HTTP header when Cortex is not frontend by an auth proxy validating the tenant IDs
21+
* [CHANGE] Some files and directories created by Mimir components on local disk now have stricter permissions, and are only readable by owner, but not group or others. #4394
22+
* [CHANGE] Compactor: compactor will no longer try to compact blocks that are already marked for deletion. Previously compactor would consider blocks marked for deletion within `-compactor.deletion-delay / 2` period as eligible for compaction. #4328
23+
* [CHANGE] Memberlist: forward only changes, not entire original message. #4419
24+
* [CHANGE] Memberlist: don't accept old tombstones as incoming change, and don't forward such messages to other gossip members. #4420
625
* [ENHANCEMENT] Add timeout for waiting on compactor to become ACTIVE in the ring. #4262
726
* [ENHANCEMENT] Reduce memory used by streaming queries, particularly in ruler. #4341
27+
* [ENHANCEMENT] Ring: allow experimental configuration of disabling of heartbeat timeouts by setting the relevant configuration value to zero. Applies to the following: #4342
28+
* `-distributor.ring.heartbeat-timeout`
29+
* `-ring.heartbeat-timeout`
30+
* `-ruler.ring.heartbeat-timeout`
31+
* `-alertmanager.sharding-ring.heartbeat-timeout`
32+
* `-compactor.ring.heartbeat-timeout`
33+
* `-store-gateway.sharding-ring.heartbeat-timeout`
34+
* [ENHANCEMENT] Ring: allow heartbeats to be explicitly disabled by setting the interval to zero. This is considered experimental. This applies to the following configuration options: #4344
35+
* `-distributor.ring.heartbeat-period`
36+
* `-ingester.heartbeat-period`
37+
* `-ruler.ring.heartbeat-period`
38+
* `-alertmanager.sharding-ring.heartbeat-period`
39+
* `-compactor.ring.heartbeat-period`
40+
* `-store-gateway.sharding-ring.heartbeat-period`
41+
* [ENHANCEMENT] Memberlist: optimized receive path for processing ring state updates, to help reduce CPU utilization in large clusters. #4345
42+
* [ENHANCEMENT] Memberlist: expose configuration of memberlist packet compression via `-memberlist.compression=enabled`. #4346
43+
* [ENHANCEMENT] Updated Prometheus to include changes from prometheus/prometheus#9083. Now whenever `/labels` API calls include matchers, blocks store is queried for `LabelNames` with matchers instead of `Series` calls which was inefficient. #4380
844
* [BUGFIX] HA Tracker: when cleaning up obsolete elected replicas from KV store, tracker didn't update number of cluster per user correctly. #4336
45+
* [BUGFIX] Ruler: fixed counting of PromQL evaluation errors as user-errors when updating `cortex_ruler_queries_failed_total`. #4335
46+
* [BUGFIX] Ingester: When using block storage, prevent any reads or writes while the ingester is stopping. This will prevent accessing TSDB blocks once they have been already closed. #4304
47+
* [BUGFIX] Ingester: fixed ingester stuck on start up (LEAVING ring state) when `-ingester.heartbeat-period=0` and `-ingester.unregister-on-shutdown=false`. #4366
948

10-
## 1.10.0-rc.0 / 2021-06-28
1149

50+
## 1.10.0 / 2021-08-03
51+
52+
* [CHANGE] Prevent path traversal attack from users able to control the HTTP header `X-Scope-OrgID`. #4375 (CVE-2021-36157)
53+
* Users only have control of the HTTP header when Cortex is not frontend by an auth proxy validating the tenant IDs
1254
* [CHANGE] Enable strict JSON unmarshal for `pkg/util/validation.Limits` struct. The custom `UnmarshalJSON()` will now fail if the input has unknown fields. #4298
1355
* [CHANGE] Cortex chunks storage has been deprecated and it's now in maintenance mode: all Cortex users are encouraged to migrate to the blocks storage. No new features will be added to the chunks storage. The default Cortex configuration still runs the chunks engine; please check out the [blocks storage doc](https://cortexmetrics.io/docs/blocks-storage/) on how to configure Cortex to run with the blocks storage. #4268
1456
* [CHANGE] The example Kubernetes manifests (stored at `k8s/`) have been removed due to a lack of proper support and maintenance. #4268
@@ -75,6 +117,7 @@
75117
* [BUGFIX] Store-gateway: when blocks sharding is enabled, do not load all blocks in each store-gateway in case of a cold startup, but load only blocks owned by the store-gateway replica. #4271
76118
* [BUGFIX] Memberlist: fix to setting the default configuration value for `-memberlist.retransmit-factor` when not provided. This should improve propagation delay of the ring state (including, but not limited to, tombstones). Note that if the configuration is already explicitly given, this fix has no effect. #4269
77119
* [BUGFIX] Querier: Fix issue where samples in a chunk might get skipped by batch iterator. #4218
120+
78121
## Blocksconvert
79122

80123
* [ENHANCEMENT] Scanner: add support for DynamoDB (v9 schema only). #3828

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ build-image/$(UPTODATE): build-image/*
119119
SUDO := $(shell docker info >/dev/null 2>&1 || echo "sudo -E")
120120
BUILD_IN_CONTAINER := true
121121
BUILD_IMAGE ?= $(IMAGE_PREFIX)build-image
122-
LATEST_BUILD_IMAGE_TAG ?= build-image-multiarch-1d2497ff6
122+
LATEST_BUILD_IMAGE_TAG ?= 20210713_update-go-1.16.6-178ab0c4f
123123

124124
# TTY is parameterized to allow Google Cloud Builder to run builds,
125125
# as it currently disallows TTY devices. This value needs to be overridden
@@ -176,7 +176,7 @@ lint:
176176
# Configured via .golangci.yml.
177177
golangci-lint run
178178

179-
# Ensure no blacklisted package is imported.
179+
# Ensure no blocklisted package is imported.
180180
GOFLAGS="-tags=requires_docker" faillint -paths "github.com/bmizerany/assert=github.com/stretchr/testify/assert,\
181181
golang.org/x/net/context=context,\
182182
sync/atomic=go.uber.org/atomic,\

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ For security issues see https://github.com/cortexproject/cortex/security/policy
132132

133133
## Community Meetings
134134

135-
The Cortex community call happens every three weeks on Thursday at 03:30pm – 04:15pm UTC to get calendar invite join the [google groups](https://groups.google.com/forum/#!forum/cortex-monitoring).
135+
The Cortex community call happens every two weeks on Thursday, alternating at 1200 UTC and 1700 UTC. To get a calendar invite join the [google groups](https://groups.google.com/forum/#!forum/cortex-monitoring) or check out [the CNCF community calendar](https://www.cncf.io/calendar/).
136136

137137
Meeting notes are held [here](https://docs.google.com/document/d/1shtXSAqp3t7fiC-9uZcKkq3mgwsItAJlH6YW6x1joZo/edit).
138138

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.0-rc.0
1+
1.10.0

build-image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16.3-buster
1+
FROM golang:1.16.6-buster
22
ARG goproxyValue
33
ENV GOPROXY=${goproxyValue}
44
RUN apt-get update && apt-get install -y curl python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \

cmd/query-tee/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/go-kit/kit/log/level"
88
"github.com/prometheus/client_golang/prometheus"
9+
"github.com/prometheus/client_golang/prometheus/collectors"
910
"github.com/weaveworks/common/logging"
1011
"github.com/weaveworks/common/server"
1112

@@ -35,7 +36,7 @@ func main() {
3536

3637
// Run the instrumentation server.
3738
registry := prometheus.NewRegistry()
38-
registry.MustRegister(prometheus.NewGoCollector())
39+
registry.MustRegister(collectors.NewGoCollector())
3940

4041
i := querytee.NewInstrumentationServer(cfg.ServerMetricsPort, registry)
4142
if err := i.Start(); err != nil {

docs/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ should read:
3636
1. [Getting started with Cortex](getting-started/_index.md)
3737
1. [Information regarding configuring Cortex](configuration/_index.md)
3838

39+
There are also individual [guides](guides/_index.md) to many tasks.
40+
Please review the important [security advice](guides/security.md) before deploying.
41+
3942
For a guide to contributing to Cortex, see the [contributor guidelines](contributing/).
4043

4144
## Further reading

docs/blocks-storage/compactor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ compactor:
209209
# CLI flag: -compactor.ring.multi.mirror-timeout
210210
[mirror_timeout: <duration> | default = 2s]
211211

212-
# Period at which to heartbeat to the ring.
212+
# Period at which to heartbeat to the ring. 0 = disabled.
213213
# CLI flag: -compactor.ring.heartbeat-period
214214
[heartbeat_period: <duration> | default = 5s]
215215

216216
# The heartbeat timeout after which compactors are considered unhealthy
217-
# within the ring.
217+
# within the ring. 0 = never (timeout disabled).
218218
# CLI flag: -compactor.ring.heartbeat-timeout
219219
[heartbeat_timeout: <duration> | default = 1m]
220220

0 commit comments

Comments
 (0)