Skip to content

Commit e8bd7d0

Browse files
committed
Updated docs
Signed-off-by: Justin Jung <[email protected]>
1 parent 6455a8a commit e8bd7d0

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

docs/configuration/config-file-reference.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3014,14 +3014,17 @@ The `limits_config` configures default and per-tenant limits imposed by Cortex s
30143014
# CLI flag: -frontend.max-outstanding-requests-per-tenant
30153015
[max_outstanding_requests_per_tenant: <int> | default = 100]
30163016

3017-
# Number of reserved queriers to only handle high priority queue (either query
3018-
# frontend or query scheduler). If the value is between 0 and 1, it will be used
3019-
# as a percentage of per-tenant queriers.
3020-
# CLI flag: -frontend.reserved-high-priority-queriers
3021-
[reserved_high_priority_queriers: <float> | default = 0]
3017+
# Configuration for query priority.
3018+
query_priority:
3019+
# Whether queries are assigned with priorities.
3020+
[enabled: <boolean> | default = false]
3021+
3022+
# Priority assigned to all queries by default. Must be a unique value. Use
3023+
# this as a baseline to make certain queries higher/lower priority.
3024+
[default_priority: <int> | default = 1]
30223025

3023-
# List of query definitions to be treated as a high priority.
3024-
[high_priority_queries: <list of HighPriorityQuery> | default = []]
3026+
# List of priority definitions.
3027+
[priorities: <list of PriorityDef> | default = []]
30253028

30263029
# Duration to delay the evaluation of rules to ensure the underlying metrics
30273030
# have been pushed to Cortex.
@@ -4980,12 +4983,26 @@ otel:
49804983
[tls_insecure_skip_verify: <boolean> | default = false]
49814984
```
49824985
4983-
### `HighPriorityQuery`
4986+
### `PriorityDef`
4987+
4988+
```yaml
4989+
# Priority level. Must be a unique value.
4990+
[priority: <int> | default = 2]
4991+
4992+
# Number of reserved queriers to handle this priority only. Value between 0 and
4993+
# 1 will be used as a percentage.
4994+
[reserved_queriers: <float> | default = 0]
4995+
4996+
# List of query attributes to assign the priority.
4997+
[query_attributes: <list of QueryAttribute> | default = []]
4998+
```
4999+
5000+
### `QueryAttribute`
49845001

49855002
```yaml
49865003
# Query string regex. If evaluated true (on top of meeting all other criteria),
49875004
# query is treated as a high priority.
4988-
[regex: <string> | default = ""]
5005+
[regex: <string> | default = ".*"]
49895006
49905007
# If query range falls between the start_time and end_time (on top of meeting
49915008
# all other criteria), query is treated as a high priority.

docs/configuration/single-process-config-blocks-local.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,14 @@ ruler_storage:
8888
backend: local
8989
local:
9090
directory: /tmp/cortex/rules
91+
92+
limits:
93+
query_priority:
94+
enabled: true
95+
default_priority: 1
96+
priorities:
97+
- priority: 1
98+
reserved_queriers: 1
99+
query_attributes:
100+
- start_time: 2h
101+
end_time: 0s

0 commit comments

Comments
 (0)