This release contains 112 contributions from 51 contributors. Thank you!
Some notable new features in this release are:
- Streaming capabilities in Querier for metadata APIs.
- Experimental shuffle sharding support for compactor, which enables parallel compaction.
Some notable enhancement and bug fixes in this release are:
- New block storage configurations for Azure that allows reduction in memory usage.
- Memory leak fix in Distributor and Ruler.
- Jitter in Memberlist rejoin interval that reduces CPU utilization during rejoin.
Cortex
- [CHANGE] Changed default for
-ingester.min-ready-duration
from 1 minute to 15 seconds. #4539 - [CHANGE] query-frontend: Do not print anything in the logs of
query-frontend
if a in-progress query has been canceled (context canceled) to avoid spam. #4562 - [CHANGE] Compactor block deletion mark migration, needed when upgrading from v1.7, is now disabled by default. #4597
- [CHANGE] The
status_code
label on gRPC client metrics has changed from '200' and '500' to '2xx', '5xx', '4xx', 'cancel' or 'error'. #4601 - [CHANGE] Memberlist: changed probe interval from
1s
to5s
and probe timeout from500ms
to2s
. #4601 - [CHANGE] Fix incorrectly named
cortex_cache_fetched_keys
andcortex_cache_hits
metrics. Renamed tocortex_cache_fetched_keys_total
andcortex_cache_hits_total
respectively. #4686 - [CHANGE] Enable Thanos series limiter in store-gateway. #4702
- [CHANGE] Distributor: Apply
max_fetched_series_per_query
limit for/series
API. #4683 - [CHANGE] Re-enable the
proxy_url
option for receiver configuration. #4741 - [FEATURE] Ruler: Add
external_labels
option to tag all alerts with a given set of labels. #4499 - [FEATURE] Compactor: Add
-compactor.skip-blocks-with-out-of-order-chunks-enabled
configuration to mark blocks containing index with out-of-order chunks for no compact instead of halting the compaction. #4707 - [FEATURE] Querier/Query-Frontend: Add
-querier.per-step-stats-enabled
and-frontend.cache-queryable-samples-stats
configurations to enable query sample statistics. #4708 - [FEATURE] Add shuffle sharding for the compactor #4433
- [FEATURE] Querier: Use streaming for ingester metdata APIs. #4725
- [ENHANCEMENT] Update Go version to 1.17.8. #4602 #4604 #4658
- [ENHANCEMENT] Keep track of discarded samples due to bad relabel configuration in
cortex_discarded_samples_total
. #4503 - [ENHANCEMENT] Ruler: Add
-ruler.disable-rule-group-label
to disable therule_group
label on exported metrics. #4571 - [ENHANCEMENT] Query federation: improve performance in MergeQueryable by memoizing labels. #4502
- [ENHANCEMENT] Added new ring related config
-ingester.readiness-check-ring-health
when enabled the readiness probe will succeed only after all instances are ACTIVE and healthy in the ring, this is enabled by default. #4539 - [ENHANCEMENT] Added new ring related config
-distributor.excluded-zones
when set this will exclude the comma-separated zones from the ring, default is "". #4539 - [ENHANCEMENT] Upgraded Docker base images to
alpine:3.14
. #4514 - [ENHANCEMENT] Updated Prometheus to latest. Includes changes from prometheus#9239, adding 15 new functions. Multiple TSDB bugfixes prometheus#9438 & prometheus#9381. #4524
- [ENHANCEMENT] Query Frontend: Add setting
-frontend.forward-headers-list
in frontend to configure the set of headers from the requests to be forwarded to downstream requests. #4486 - [ENHANCEMENT] Blocks storage: Add
-blocks-storage.azure.http.*
,-alertmanager-storage.azure.http.*
, and-ruler-storage.azure.http.*
to configure the Azure storage client. #4581 - [ENHANCEMENT] Optimise memberlist receive path when used as a backing store for rings with a large number of members. #4601
- [ENHANCEMENT] Add length and limit to labelNameTooLongError and labelValueTooLongError #4595
- [ENHANCEMENT] Add jitter to rejoinInterval. #4747
- [ENHANCEMENT] Compactor: uploading blocks no compaction marks to the global location and introduce a new metric #4729
cortex_bucket_blocks_marked_for_no_compaction_count
: Total number of blocks marked for no compaction in the bucket.
- [ENHANCEMENT] Querier: Reduce the number of series that are kept in memory while streaming from ingesters. #4745
- [BUGFIX] AlertManager: remove stale template files. #4495
- [BUGFIX] Distributor: fix bug in query-exemplar where some results would get dropped. #4583
- [BUGFIX] Update Thanos dependency: compactor tracing support, azure blocks storage memory fix. #4585
- [BUGFIX] Set appropriate
Content-Type
header for /services endpoint, which previously hard-codedtext/plain
. #4596 - [BUGFIX] Querier: Disable query scheduler SRV DNS lookup, which removes noisy log messages about "failed DNS SRV record lookup". #4601
- [BUGFIX] Memberlist: fixed corrupted packets when sending compound messages with more than 255 messages or messages bigger than 64KB. #4601
- [BUGFIX] Query Frontend: If 'LogQueriesLongerThan' is set to < 0, log all queries as described in the docs. #4633
- [BUGFIX] Distributor: update defaultReplicationStrategy to not fail with extend-write when a single instance is unhealthy. #4636
- [BUGFIX] Distributor: Fix race condition on
/series
introduced by #4683. #4716 - [BUGFIX] Ruler: Fixed leaking notifiers after users are removed #4718
- [BUGFIX] Distributor: Fix a memory leak in distributor due to the cluster label. #4739
- [BUGFIX] Memberlist: Avoid clock skew by limiting the timestamp accepted on gossip. #4750
- [BUGFIX] Compactor: skip compaction if there is only 1 block available for shuffle-sharding compactor. #4756