Skip to content

Commit

Permalink
Rename flag
Browse files Browse the repository at this point in the history
  • Loading branch information
chencs committed Feb 4, 2025
1 parent 4d6b45d commit c7331c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/mimir/config-descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -4397,7 +4397,7 @@
"desc": "Mutate incoming queries that look far into the future to only look into the future by the set duration. 0 to disable.",
"fieldValue": null,
"fieldDefaultValue": 0,
"fieldFlag": "query-frontend.adjust-to-max-future-query-window",
"fieldFlag": "query-frontend.max-future-query-window",
"fieldType": "duration",
"fieldCategory": "experimental"
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/mimir/help-all.txt.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2215,8 +2215,6 @@ Usage of ./cmd/mimir/mimir:
The timeout for a query. This config option should be set on query-frontend too when query sharding is enabled. This also applies to queries evaluated by the ruler (internally or remotely). (default 2m0s)
-query-frontend.active-series-write-timeout duration
[experimental] Timeout for writing active series responses. 0 means the value from `-server.http-write-timeout` is used. (default 5m0s)
-query-frontend.adjust-to-max-future-query-window duration
[experimental] Mutate incoming queries that look far into the future to only look into the future by the set duration. 0 to disable.
-query-frontend.align-queries-with-step
Mutate incoming queries to align their start and end with their step to improve result caching.
-query-frontend.block-promql-experimental-functions
Expand Down Expand Up @@ -2291,6 +2289,8 @@ Usage of ./cmd/mimir/mimir:
Max body size for downstream prometheus. (default 10485760)
-query-frontend.max-cache-freshness duration
Most recent allowed cacheable result per-tenant, to prevent caching very recent results that might still be in flux. (default 10m)
-query-frontend.max-future-query-window duration
[experimental] Mutate incoming queries that look far into the future to only look into the future by the set duration. 0 to disable.
-query-frontend.max-queriers-per-tenant int
Maximum number of queriers that can handle requests for a single tenant. If set to 0 or value higher than number of available queriers, *all* queriers will handle requests for the tenant. Each frontend (or query-scheduler, if used) will select the same set of queriers for the same tenant (given that all queriers are connected to all frontends / query-schedulers). This option only works with queriers connecting to the query-frontend / query-scheduler, not when using downstream URL.
-query-frontend.max-query-expression-size-bytes int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,7 @@ The `limits` block configures default and per-tenant limits imposed by component

# (experimental) Mutate incoming queries that look far into the future to only
# look into the future by the set duration. 0 to disable.
# CLI flag: -query-frontend.adjust-to-max-future-query-window
# CLI flag: -query-frontend.max-future-query-window
[max_future_query_window: <duration> | default = 0s]

# Enables endpoints used for cardinality analysis.
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/validation/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const (
AlertmanagerMaxGrafanaStateSizeFlag = "alertmanager.max-grafana-state-size-bytes"
costAttributionLabelsFlag = "validation.cost-attribution-labels"
maxCostAttributionLabelsPerUserFlag = "validation.max-cost-attribution-labels-per-user"
maxFutureQueryWindowFlag = "query-frontend.adjust-to-max-future-query-window"
maxFutureQueryWindowFlag = "query-frontend.max-future-query-window"

// MinCompactorPartialBlockDeletionDelay is the minimum partial blocks deletion delay that can be configured in Mimir.
MinCompactorPartialBlockDeletionDelay = 4 * time.Hour
Expand Down

0 comments on commit c7331c7

Please sign in to comment.