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: clusterloader2/pkg/prometheus/manifests/0prometheus-operator-0alertmanagerConfigCustomResourceDefinition.yaml
description: PrometheusRule defines recording and alerting rules for a Prometheus instance
24
+
description: |-
25
+
The `PrometheusRule` custom resource definition (CRD) defines [alerting](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) and [recording](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) rules to be evaluated by `Prometheus` or `ThanosRuler` objects.
26
+
27
+
`Prometheus` and `ThanosRuler` objects select `PrometheusRule` objects using label and namespace selectors.
21
28
properties:
22
29
apiVersion:
23
-
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
30
+
description: |-
31
+
APIVersion defines the versioned schema of this representation of an object.
32
+
Servers should convert recognized schemas to the latest internal value, and
33
+
may reject unrecognized values.
34
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
24
35
type: string
25
36
kind:
26
-
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
37
+
description: |-
38
+
Kind is a string value representing the REST resource this object represents.
39
+
Servers may infer this from the endpoint the client submits requests to.
40
+
Cannot be updated.
41
+
In CamelCase.
42
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
27
43
type: string
28
44
metadata:
29
45
type: object
@@ -33,55 +49,110 @@ spec:
33
49
groups:
34
50
description: Content of Prometheus rule file
35
51
items:
36
-
description: 'RuleGroup is a list of sequentially evaluated recording and alerting rules. Note: PartialResponseStrategy is only used by ThanosRuler and will be ignored by Prometheus instances. Valid values for this field are ''warn'' or ''abort''. More info: https://github.com/thanos-io/thanos/blob/master/docs/components/rule.md#partial-response'
52
+
description: RuleGroup is a list of sequentially evaluated recording
53
+
and alerting rules.
37
54
properties:
38
55
interval:
56
+
description: Interval determines how often rules in the group
description: List of alerting and recording rules.
45
97
items:
46
-
description: Rule describes an alerting or recording rule.
98
+
description: |-
99
+
Rule describes an alerting or recording rule
100
+
See Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) rule
47
101
properties:
48
102
alert:
103
+
description: |-
104
+
Name of the alert. Must be a valid label value.
105
+
Only one of `record` and `alert` must be set.
49
106
type: string
50
107
annotations:
51
108
additionalProperties:
52
109
type: string
110
+
description: |-
111
+
Annotations to add to each alert.
112
+
Only valid for alerting rules.
53
113
type: object
54
114
expr:
55
115
anyOf:
56
116
- type: integer
57
117
- type: string
118
+
description: PromQL expression to evaluate.
58
119
x-kubernetes-int-or-string: true
59
120
for:
121
+
description: Alerts are considered firing once they have
0 commit comments