k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/0prometheus-operator-0probeCustomResourceDefinition.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: probes.monitoring.coreos.com 8 spec: 9 group: monitoring.coreos.com 10 names: 11 kind: Probe 12 listKind: ProbeList 13 plural: probes 14 singular: probe 15 scope: Namespaced 16 versions: 17 - name: v1 18 schema: 19 openAPIV3Schema: 20 description: Probe defines monitoring for a set of static targets or ingresses. 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 Ingress selection for target discovery by Prometheus. 32 properties: 33 interval: 34 description: Interval at which targets are probed using the configured prober. If not specified Prometheus' global scrape interval is used. 35 type: string 36 jobName: 37 description: The job name assigned to scraped metrics by default. 38 type: string 39 module: 40 description: 'The module to use for probing specifying how to probe the target. Example module configuring in the blackbox exporter: https://github.com/prometheus/blackbox_exporter/blob/master/example.yml' 41 type: string 42 prober: 43 description: Specification for the prober to use for probing targets. The prober.URL parameter is required. Targets cannot be probed if left empty. 44 properties: 45 path: 46 description: Path to collect metrics from. Defaults to `/probe`. 47 type: string 48 scheme: 49 description: HTTP scheme to use for scraping. Defaults to `http`. 50 type: string 51 url: 52 description: Mandatory URL of the prober. 53 type: string 54 required: 55 - url 56 type: object 57 scrapeTimeout: 58 description: Timeout for scraping metrics from the Prometheus exporter. 59 type: string 60 targets: 61 description: Targets defines a set of static and/or dynamically discovered targets to be probed using the prober. 62 properties: 63 ingress: 64 description: Ingress defines the set of dynamically discovered ingress objects which hosts are considered for probing. 65 properties: 66 namespaceSelector: 67 description: Select Ingress objects by namespace. 68 properties: 69 any: 70 description: Boolean describing whether all namespaces are selected in contrast to a list restricting them. 71 type: boolean 72 matchNames: 73 description: List of namespace names. 74 items: 75 type: string 76 type: array 77 type: object 78 relabelingConfigs: 79 description: 'RelabelConfigs to apply to samples before ingestion. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config' 80 items: 81 description: 'RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of Prometheus configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs' 82 properties: 83 action: 84 description: Action to perform based on regex matching. Default is 'replace' 85 type: string 86 modulus: 87 description: Modulus to take of the hash of the source label values. 88 format: int64 89 type: integer 90 regex: 91 description: Regular expression against which the extracted value is matched. Default is '(.*)' 92 type: string 93 replacement: 94 description: Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1' 95 type: string 96 separator: 97 description: Separator placed between concatenated source label values. default is ';'. 98 type: string 99 sourceLabels: 100 description: The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions. 101 items: 102 type: string 103 type: array 104 targetLabel: 105 description: Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available. 106 type: string 107 type: object 108 type: array 109 selector: 110 description: Select Ingress objects by labels. 111 properties: 112 matchExpressions: 113 description: matchExpressions is a list of label selector requirements. The requirements are ANDed. 114 items: 115 description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. 116 properties: 117 key: 118 description: key is the label key that the selector applies to. 119 type: string 120 operator: 121 description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. 122 type: string 123 values: 124 description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. 125 items: 126 type: string 127 type: array 128 required: 129 - key 130 - operator 131 type: object 132 type: array 133 matchLabels: 134 additionalProperties: 135 type: string 136 description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. 137 type: object 138 type: object 139 type: object 140 staticConfig: 141 description: 'StaticConfig defines static targets which are considers for probing. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#static_config.' 142 properties: 143 labels: 144 additionalProperties: 145 type: string 146 description: Labels assigned to all metrics scraped from the targets. 147 type: object 148 static: 149 description: Targets is a list of URLs to probe using the configured prober. 150 items: 151 type: string 152 type: array 153 type: object 154 type: object 155 type: object 156 required: 157 - spec 158 type: object 159 served: true 160 storage: true 161 status: 162 acceptedNames: 163 kind: "" 164 plural: "" 165 conditions: [] 166 storedVersions: []