Skip to content

Commit c1723f0

Browse files
authored
Merge branch 'main' into vldmr/helm-gomaxprocs
2 parents adfbe1d + 0ddec20 commit c1723f0

File tree

333 files changed

+9908
-2190
lines changed

Some content is hidden

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

333 files changed

+9908
-2190
lines changed

.github/workflows/update-vendored-mimir-prometheus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
uses: actions/setup-go@v5
7373
with:
7474
# We only use this to run `go mod` commands, so it doesn't need to follow the version used in the Dockerfile.
75-
go-version: "1.24.4"
75+
go-version: "1.24.6"
7676

7777
# This job uses "mimir-vendoring bot" instead of "github-actions bot" (secrets.GITHUB_TOKEN)
7878
# because any events triggered by the later don't spawn GitHub actions.

.golangci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@ linters:
7575
- name: redefines-builtin-id
7676
disabled: true
7777
staticcheck:
78+
# Replicate the default, except to not disable ST1016.
7879
checks:
79-
- ST1016
80+
- all
81+
- -ST1000
82+
- -ST1003
83+
- -ST1020
84+
- -ST1021
85+
- -ST1022
8086
exclusions:
8187
presets:
8288
- comments

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@
1111
* [CHANGE] Memcached: Remove experimental `-<prefix>.memcached.addresses-provider` flag to use alternate DNS service discovery backends. The more reliable backend introduced in 2.16.0 (#10895) is now the default. As a result of this change, DNS-based cache service discovery no longer supports search domains. #12175
1212
* [CHANGE] Query-frontend: Remove the CLI flag `-query-frontend.downstream-url` and corresponding YAML configuration and the ability to use the query-frontend to proxy arbitrary Prometheus backends. #12191
1313
* [CHANGE] Query-frontend: Remove experimental instant query splitting feature. #12267
14-
* [FEATURE] Distributor, ruler: Add experimental `-validation.name-validation-scheme` option to specify the validation scheme for metric and label names. #12215
14+
* [CHANGE] Distributor: Remove deprecated global HA tracker timeout configuration flags. #12321
15+
* [FEATURE] Distributor, ruler: Add experimental `-validation.name-validation-scheme` flag to specify the validation scheme for metric and label names. #12215
16+
* [FEATURE] Distributor: Add experimental `-distributor.otel-translation-strategy` flag to support configuring the metric and label name translation strategy in the OTLP endpoint. #12284 #12306
17+
* [ENHANCEMENT] Query-scheduler/query-frontend: Add native histogram definitions to `cortex_query_{scheduler|frontend}_queue_duration_seconds`. #12288
18+
* [ENHANCEMENT] Compactor: Add `-compactor.update-blocks-concurrency` flag to control concurrency for updating block metadata during bucket index updates, separate from deletion marker concurrency. #12117
1519
* [ENHANCEMENT] Stagger head compaction intervals across zones to prevent compactions from aligning simultaneously, which could otherwise cause strong consistency queries to fail when experimental ingest storage is enabled. #12090
1620
* [ENHANCEMENT] Querier: Add native histogram definition to `cortex_bucket_index_load_duration_seconds`. #12094
1721
* [ENHANCEMENT] MQE: Add support for applying common subexpression elimination to range vector expressions in instant queries. #12236
22+
* [ENHANCEMENT] Ingester: Improve the performance of active series custom trackers matchers. #12184
1823
* [BUGFIX] Querier: Samples with the same timestamp are merged deterministically. Previously, this could lead to flapping query results when an out-of-order sample is ingested that conflicts with a previously ingested in-order sample's value. #8673
1924
* [BUGFIX] Store-gateway: Fix potential goroutine leak by passing the scoped context in LabelValues. #12048
2025
* [BUGFIX] Distributor: Fix pooled memory reuse bug that can cause corrupt data to appear in the err-mimir-label-value-too-long error message. #12048
26+
* [BUGFIX] Querier: Fix timeout responding to query-frontend when response size is very close to `-querier.frontend-client.grpc-max-send-msg-size`. #12261
2127

2228
### Jsonnet
2329

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ mimir-build-image/$(UPTODATE): mimir-build-image/*
247247
# All the boiler plate for building golang follows:
248248
SUDO := $(shell docker info >/dev/null 2>&1 || echo "sudo -E")
249249
BUILD_IN_CONTAINER ?= true
250-
LATEST_BUILD_IMAGE_TAG ?= pr12036-d9b5f13dc5
250+
LATEST_BUILD_IMAGE_TAG ?= pr12352-27854ede92
251251

252252
# TTY is parameterized to allow CI and scripts to run builds,
253253
# as it currently disallows TTY devices.
@@ -415,13 +415,6 @@ lint: check-makefiles
415415
github.com/prometheus/client_golang/prometheus.{NewCounter,NewCounterVec,NewCounterFunc,NewGauge,NewGaugeVec,NewGaugeFunc,NewSummary,NewSummaryVec,NewHistogram,NewHistogramVec}=github.com/prometheus/client_golang/prometheus/promauto.With" \
416416
./pkg/...
417417

418-
# Use the faster slices.Sort where we can.
419-
# Note that we don't automatically suggest replacing sort.Float64s() with slices.Sort() as the documentation for slices.Sort()
420-
# at the time of writing warns that slices.Sort() may not correctly handle NaN values.
421-
faillint -paths \
422-
"sort.{Strings,Ints}=slices.Sort" \
423-
./pkg/... ./cmd/... ./tools/... ./integration/...
424-
425418
# Use the faster slices.IsSortedFunc where we can.
426419
faillint -paths \
427420
"sort.{SliceIsSorted}=slices.IsSortedFunc" \

cmd/metaconvert/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Provenance-includes-license: Apache-2.0
44
# Provenance-includes-copyright: The Cortex Authors.
55

6-
FROM alpine:3.22.0
6+
FROM alpine:3.22.1
77
ARG EXTRA_PACKAGES
88
RUN apk add --no-cache ca-certificates tzdata $EXTRA_PACKAGES
99
# Expose TARGETOS and TARGETARCH variables. These are supported by Docker when using BuildKit, but must be "enabled" using ARG.

cmd/mimir/Dockerfile.continuous-test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: AGPL-3.0-only
22

3-
FROM alpine:3.22.0
3+
FROM alpine:3.22.1
44
ARG EXTRA_PACKAGES
55
RUN apk add --no-cache ca-certificates tzdata $EXTRA_PACKAGES
66
# Expose TARGETOS and TARGETARCH variables. These are supported by Docker when using BuildKit, but must be "enabled" using ARG.

cmd/mimir/config-descriptor.json

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@
729729
"kind": "field",
730730
"name": "trace_request_exclude_headers_list",
731731
"required": false,
732-
"desc": "Comma separated list of headers to exclude from tracing spans. Only used if server.trace-request-headers is true. The following headers are always excluded: Authorization, Cookie, X-Csrf-Token.",
732+
"desc": "Comma separated list of headers to exclude from tracing spans. Only used if server.trace-request-headers is true. The following headers are always excluded: Authorization, Cookie, X-Access-Token, X-Csrf-Token, X-Grafana-Id.",
733733
"fieldValue": null,
734734
"fieldDefaultValue": "",
735735
"fieldFlag": "server.trace-request-headers-exclude-list",
@@ -1284,36 +1284,6 @@
12841284
],
12851285
"fieldValue": null,
12861286
"fieldDefaultValue": null
1287-
},
1288-
{
1289-
"kind": "field",
1290-
"name": "ha_tracker_update_timeout",
1291-
"required": false,
1292-
"desc": "Deprecated. Use limits.ha_tracker_update_timeout.",
1293-
"fieldValue": null,
1294-
"fieldDefaultValue": null,
1295-
"fieldType": "duration",
1296-
"fieldCategory": "advanced"
1297-
},
1298-
{
1299-
"kind": "field",
1300-
"name": "ha_tracker_update_timeout_jitter_max",
1301-
"required": false,
1302-
"desc": "Deprecated. Use limits.ha_tracker_update_timeout_jitter_max.",
1303-
"fieldValue": null,
1304-
"fieldDefaultValue": null,
1305-
"fieldType": "duration",
1306-
"fieldCategory": "advanced"
1307-
},
1308-
{
1309-
"kind": "field",
1310-
"name": "ha_tracker_failover_timeout",
1311-
"required": false,
1312-
"desc": "Deprecated. Use limits.ha_tracker_failover_timeout.",
1313-
"fieldValue": null,
1314-
"fieldDefaultValue": null,
1315-
"fieldType": "duration",
1316-
"fieldCategory": "advanced"
13171287
}
13181288
],
13191289
"fieldValue": null,
@@ -6014,6 +5984,17 @@
60145984
"fieldType": "boolean",
60155985
"fieldCategory": "experimental"
60165986
},
5987+
{
5988+
"kind": "field",
5989+
"name": "otel_translation_strategy",
5990+
"required": false,
5991+
"desc": "Translation strategy to apply in OTLP endpoint for metric and label names. If unspecified (the default), the strategy is derived from -validation.name-validation-scheme and -distributor.otel-metric-suffixes-enabled. Supported values: \"\", UnderscoreEscapingWithSuffixes, UnderscoreEscapingWithoutSuffixes, NoUTF8EscapingWithSuffixes, NoTranslation.",
5992+
"fieldValue": null,
5993+
"fieldDefaultValue": "",
5994+
"fieldFlag": "distributor.otel-translation-strategy",
5995+
"fieldType": "string",
5996+
"fieldCategory": "experimental"
5997+
},
60175998
{
60185999
"kind": "field",
60196000
"name": "ingest_storage_read_consistency",
@@ -10743,6 +10724,17 @@
1074310724
"fieldType": "int",
1074410725
"fieldCategory": "advanced"
1074510726
},
10727+
{
10728+
"kind": "field",
10729+
"name": "update_blocks_concurrency",
10730+
"required": false,
10731+
"desc": "Number of Go routines to use when updating blocks metadata during bucket index updates.",
10732+
"fieldValue": null,
10733+
"fieldDefaultValue": 1,
10734+
"fieldFlag": "compactor.update-blocks-concurrency",
10735+
"fieldType": "int",
10736+
"fieldCategory": "advanced"
10737+
},
1074610738
{
1074710739
"kind": "field",
1074810740
"name": "enabled_tenants",

cmd/mimir/help-all.txt.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,8 @@ Usage of ./cmd/mimir/mimir:
11411141
Number of symbols flushers used when doing split compaction. (default 1)
11421142
-compactor.tenant-cleanup-delay duration
11431143
For tenants marked for deletion, this is the time between deletion of the last block, and doing final cleanup (marker files, debug files) of the tenant. (default 6h0m0s)
1144+
-compactor.update-blocks-concurrency int
1145+
Number of Go routines to use when updating blocks metadata during bucket index updates. (default 1)
11441146
-compactor.upload-sparse-index-headers
11451147
[experimental] If enabled, the compactor constructs and uploads sparse index headers to object storage during each compaction cycle. This allows store-gateway instances to use the sparse headers from object storage instead of recreating them locally.
11461148
-config.expand-env
@@ -1271,6 +1273,8 @@ Usage of ./cmd/mimir/mimir:
12711273
[experimental] Optionally specify OTel resource attributes to promote to labels.
12721274
-distributor.otel-promote-scope-metadata
12731275
[experimental] Whether to promote OTel scope metadata (scope name, version, schema URL, attributes) to corresponding metric labels, prefixed with otel_scope_.
1276+
-distributor.otel-translation-strategy value
1277+
[experimental] Translation strategy to apply in OTLP endpoint for metric and label names. If unspecified (the default), the strategy is derived from -validation.name-validation-scheme and -distributor.otel-metric-suffixes-enabled. Supported values: "", UnderscoreEscapingWithSuffixes, UnderscoreEscapingWithoutSuffixes, NoUTF8EscapingWithSuffixes, NoTranslation.
12741278
-distributor.remote-timeout duration
12751279
Timeout for downstream ingesters. (default 2s)
12761280
-distributor.request-burst-size int
@@ -3086,7 +3090,7 @@ Usage of ./cmd/mimir/mimir:
30863090
-server.trace-request-headers
30873091
Optionally add request headers to tracing spans.
30883092
-server.trace-request-headers-exclude-list string
3089-
Comma separated list of headers to exclude from tracing spans. Only used if server.trace-request-headers is true. The following headers are always excluded: Authorization, Cookie, X-Csrf-Token.
3093+
Comma separated list of headers to exclude from tracing spans. Only used if server.trace-request-headers is true. The following headers are always excluded: Authorization, Cookie, X-Access-Token, X-Csrf-Token, X-Grafana-Id.
30903094
-shutdown-delay duration
30913095
How long to wait between SIGTERM and shutdown. After receiving SIGTERM, Mimir will report not-ready status via /ready endpoint.
30923096
-store-gateway.disabled-tenants comma-separated-list-of-strings

cmd/mimir/help.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ Usage of ./cmd/mimir/mimir:
818818
-server.trace-request-headers
819819
Optionally add request headers to tracing spans.
820820
-server.trace-request-headers-exclude-list string
821-
Comma separated list of headers to exclude from tracing spans. Only used if server.trace-request-headers is true. The following headers are always excluded: Authorization, Cookie, X-Csrf-Token.
821+
Comma separated list of headers to exclude from tracing spans. Only used if server.trace-request-headers is true. The following headers are always excluded: Authorization, Cookie, X-Access-Token, X-Csrf-Token, X-Grafana-Id.
822822
-store-gateway.sharding-ring.consul.hostname string
823823
Hostname and port of Consul. (default "localhost:8500")
824824
-store-gateway.sharding-ring.etcd.endpoints string

cmd/mimirtool/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
FROM alpine:3.22.0
3+
FROM alpine:3.22.1
44
ARG EXTRA_PACKAGES
55
RUN apk add --no-cache ca-certificates tzdata $EXTRA_PACKAGES
66
# Expose TARGETOS and TARGETARCH variables. These are supported by Docker when using BuildKit, but must be "enabled" using ARG.

0 commit comments

Comments
 (0)