k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/0prometheus-operator-0prometheusruleCustomResourceDefinition.yaml (about) 1 apiVersion: apiextensions.k8s.io/v1 2 kind: CustomResourceDefinition 3 metadata: 4 annotations: 5 controller-gen.kubebuilder.io/version: v0.4.1 6 creationTimestamp: null 7 name: prometheusrules.monitoring.coreos.com 8 spec: 9 group: monitoring.coreos.com 10 names: 11 kind: PrometheusRule 12 listKind: PrometheusRuleList 13 plural: prometheusrules 14 singular: prometheusrule 15 scope: Namespaced 16 versions: 17 - name: v1 18 schema: 19 openAPIV3Schema: 20 description: PrometheusRule defines recording and alerting rules for a Prometheus instance 21 properties: 22 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' 24 type: string 25 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' 27 type: string 28 metadata: 29 type: object 30 spec: 31 description: Specification of desired alerting rule definitions for Prometheus. 32 properties: 33 groups: 34 description: Content of Prometheus rule file 35 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' 37 properties: 38 interval: 39 type: string 40 name: 41 type: string 42 partial_response_strategy: 43 type: string 44 rules: 45 items: 46 description: Rule describes an alerting or recording rule. 47 properties: 48 alert: 49 type: string 50 annotations: 51 additionalProperties: 52 type: string 53 type: object 54 expr: 55 anyOf: 56 - type: integer 57 - type: string 58 x-kubernetes-int-or-string: true 59 for: 60 type: string 61 labels: 62 additionalProperties: 63 type: string 64 type: object 65 record: 66 type: string 67 required: 68 - expr 69 type: object 70 type: array 71 required: 72 - name 73 - rules 74 type: object 75 type: array 76 type: object 77 required: 78 - spec 79 type: object 80 served: true 81 storage: true 82 status: 83 acceptedNames: 84 kind: "" 85 plural: "" 86 conditions: [] 87 storedVersions: []