ClusterPodMonitoring
monitoring.googleapis.com / v1alpha1
apiVersion: monitoring.googleapis.com/v1alpha1
kind: ClusterPodMonitoring
metadata:
name: example
apiVersion
string
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
kind
string
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
metadata
object
spec object required
Specification of desired Pod selection for target discovery by Prometheus.
endpoints []object required
The endpoints to scrape on the selected pods.
interval
string
Interval at which to scrape metrics. Must be a valid Prometheus duration.
metricRelabeling []object
Relabeling rules for metrics scraped from this endpoint. Relabeling rules that override protected target labels (project_id, location, cluster, namespace, job, instance, or __address__) are not permitted. The labelmap action is not permitted in general.
action
string
Action to perform based on regex matching. Defaults to 'replace'.
modulus
integer
Modulus to take of the hash of the source label values.
format:
int64
regex
string
Regular expression against which the extracted value is matched. Defaults to '(.*)'.
replacement
string
Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Defaults to '$1'.
separator
string
Separator placed between concatenated source label values. Defaults to ';'.
sourceLabels
[]string
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.
targetLabel
string
Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.
params
object
HTTP GET params to use when scraping.
path
string
HTTP path to scrape metrics from. Defaults to "/metrics".
port
string | integer required
Name or number of the port to scrape.
proxyUrl
string
Proxy URL to scrape through. Encoded passwords are not supported.
scheme
string
Protocol scheme to use to scrape.
timeout
string
Timeout for metrics scrapes. Must be a valid Prometheus duration. Must not be larger then the scrape interval.
limits object
Limits to apply at scrape time.
labelNameLength
integer
Maximum label name length. Uses Prometheus default if left unspecified.
format:
int64
labelValueLength
integer
Maximum label value length. Uses Prometheus default if left unspecified.
format:
int64
labels
integer
Maximum number of labels accepted for a single sample. Uses Prometheus default if left unspecified.
format:
int64
samples
integer
Maximum number of samples accepted within a single scrape. Uses Prometheus default if left unspecified.
format:
int64selector object required
Label selector that specifies which pods are selected for this monitoring configuration.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key
string required
key is the label key that the selector applies to.
operator
string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values
[]string
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.
matchLabels
object
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.
targetLabels object
Labels to add to the Prometheus target for discovered endpoints
fromPod []object
Labels to transfer from the Kubernetes Pod to Prometheus target labels. Mappings are applied in order.
from
string required
Kubenetes resource label to remap.
to
string
Remapped Prometheus target label. Defaults to the same name as `From`.
metadata
[]string
Pod metadata labels that are set on all scraped targets. Permitted keys are `pod`, `container`, and `node` for PodMonitoring and `pod`, `container`, `node`, and `namespace` for ClusterPodMonitoring. Defaults to [pod, container] for PodMonitoring and [namespace, pod, container] for ClusterPodMonitoring. If set to null, it will be interpreted as the empty list for PodMonitoring and to [namespace] for ClusterPodMonitoring. This is for backwards-compatibility only.
status object
Most recently observed status of the resource.
conditions []object
Represents the latest available observations of a podmonitor's current state.
lastTransitionTime
string
Last time the condition transitioned from one status to another.
format:
date-time
lastUpdateTime
string
The last time this condition was updated.
format:
date-time
message
string
A human-readable message indicating details about the transition.
reason
string
The reason for the condition's last transition.
status
string required
Status of the condition, one of True, False, Unknown.
type
string required
MonitoringConditionType is the type of MonitoringCondition.
observedGeneration
integer
The generation observed by the controller.
format:
int64No matches. Try .spec.endpoints for an exact path