-
Notifications
You must be signed in to change notification settings - Fork 9
/
default_validation.yaml
42 lines (42 loc) · 1.19 KB
/
default_validation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
validationRules:
- name: check-groups
scope: Group
validations:
- type: hasAllowedEvaluationInterval
params:
minimum: "20s"
- type: hasValidPartialResponseStrategy
- type: maxRulesPerGroup
params:
limit: 20
- name: check-alerts
scope: Alert
validations:
- type: validateLabelTemplates
- type: validateAnnotationTemplates
- type: forIsNotLongerThan
params:
limit: "1d"
- type: keepFiringForIsNotLongerThan
params:
limit: "1d"
- name: check-all-rules
scope: All rules
validations:
- type: expressionIsValidPromQL
- type: nonEmptyLabels
- type: expressionDoesNotUseIrate
- type: validFunctionsOnCounters
- type: rateBeforeAggregation
- type: expressionWithNoMetricName
- type: expressionDoesNotUseExperimentalFunctions
- type: expressionUsesUnderscoresInLargeNumbers
- type: expressionIsWellFormatted
params:
showExpectedForm: true
- type: expressionDoesNotUseRangeShorterThan
params:
limit: "1m"
- type: expressionDoesNotUseOlderDataThan
params:
limit: "4w"