You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/util/validation/limits.go
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -48,20 +48,20 @@ type DisabledRuleGroup struct {
48
48
typeDisabledRuleGroups []DisabledRuleGroup
49
49
50
50
typeQueryPrioritystruct {
51
-
Enabledbool`yaml:"enabled" doc:"nocli|description=Whether queries are assigned with priorities."`
52
-
DefaultPriorityint64`yaml:"default_priority" doc:"nocli|description=Priority assigned to all queries by default. Use this as a baseline to make certain queries higher/lower priority.|default=1"`
51
+
Enabledbool`yaml:"enabled" doc:"nocli|description=Whether queries are assigned with priorities.|default=false"`
52
+
DefaultPriorityint64`yaml:"default_priority" doc:"nocli|description=Priority assigned to all queries by default. Must be a unique value. Use this as a baseline to make certain queries higher/lower priority.|default=1"`
53
53
Priorities []PriorityDef`yaml:"priorities" doc:"nocli|description=List of priority definitions."`
ReservedQueriersfloat64`yaml:"reserved_queriers" doc:"nocli|description=Number of reserved queriers to handle this priority only. Value between 0 and 1 will be used as a percentage."`
58
+
Priorityint64`yaml:"priority" doc:"nocli|description=Priority level. Must be a unique value.|default=2"`
59
+
ReservedQueriersfloat64`yaml:"reserved_queriers" doc:"nocli|description=Number of reserved queriers to handle this priority only. Value between 0 and 1 will be used as a percentage.|default=0"`
60
60
QueryAttributes []QueryAttribute`yaml:"query_attributes" doc:"nocli|description=List of query attributes to assign the priority."`
61
61
}
62
62
63
63
typeQueryAttributestruct {
64
-
Regexstring`yaml:"regex" doc:"nocli|description=Query string regex. If evaluated true (on top of meeting all other criteria), query is treated as a high priority."`
64
+
Regexstring`yaml:"regex" doc:"nocli|description=Query string regex. If evaluated true (on top of meeting all other criteria), query is treated as a high priority.|default=.*"`
65
65
CompiledRegex*regexp.Regexp`yaml:"-" doc:"nocli"`
66
66
StartTime time.Duration`yaml:"start_time" doc:"nocli|description=If query range falls between the start_time and end_time (on top of meeting all other criteria), query is treated as a high priority.|default=0s"`
67
67
EndTime time.Duration`yaml:"end_time" doc:"nocli|description=If query range falls between the start_time and end_time (on top of meeting all other criteria), query is treated as a high priority.|default=0s"`
0 commit comments