PodMonitor defines monitoring for a set of pods.
PodMonitor defines monitoring for a set of pods.
object
spec
Property | Type | 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 |
|
|
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 |
|
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
|
|
|
Specification of desired Pod selection for target discovery by Prometheus. |
Specification of desired Pod selection for target discovery by Prometheus.
object
podMetricsEndpoints
selector
Property | Type | Description |
---|---|---|
|
|
Attaches node metadata to discovered targets. Only valid for role: pod. Only valid in Prometheus versions 2.35.0 and newer. |
|
|
The label to use to retrieve the job name from. |
|
|
Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer. |
|
|
Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer. |
|
|
Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer. |
|
|
Selector to select which namespaces the Endpoints objects are discovered from. |
|
|
A list of endpoints allowed as part of this PodMonitor. |
|
|
PodMetricsEndpoint defines a scrapeable endpoint of a Kubernetes Pod serving Prometheus metrics. |
|
|
PodTargetLabels transfers labels on the Kubernetes Pod onto the target. |
|
|
SampleLimit defines per-scrape limit on number of scraped samples that will be accepted. |
|
|
Selector to select Pod objects. |
|
|
TargetLimit defines a limit on the number of scraped targets that will be accepted. |
Attaches node metadata to discovered targets. Only valid for role: pod. Only valid in Prometheus versions 2.35.0 and newer.
object
Property | Type | Description |
---|---|---|
|
|
When set to true, Prometheus must have permissions to get Nodes. |
Selector to select which namespaces the Endpoints objects are discovered from.
object
Property | Type | Description |
---|---|---|
|
|
Boolean describing whether all namespaces are selected in contrast to a list restricting them. |
|
|
List of namespace names to select from. |
A list of endpoints allowed as part of this PodMonitor.
array
PodMetricsEndpoint defines a scrapeable endpoint of a Kubernetes Pod serving Prometheus metrics.
object
Property | Type | Description |
---|---|---|
|
|
Authorization section for this endpoint |
|
|
BasicAuth allow an endpoint to authenticate over basic authentication. More info: https://prometheus.io/docs/operating/configuration/#endpoint |
|
|
Secret to mount to read bearer token for scraping targets. The secret needs to be in the same namespace as the pod monitor and accessible by the Prometheus Operator. |
|
|
FollowRedirects configures whether scrape requests follow HTTP 3xx redirects. |
|
|
HonorLabels chooses the metric’s labels on collisions with target labels. |
|
|
HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data. |
|
|
Interval at which metrics should be scraped If not specified Prometheus' global scrape interval is used. |
|
|
MetricRelabelConfigs to apply to samples before ingestion. |
|
|
RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines |
|
|
OAuth2 for the URL. Only valid in Prometheus versions 2.27.0 and newer. |
|
|
Optional HTTP URL parameters |
|
|
|
|
|
HTTP path to scrape for metrics. |
|
|
Name of the pod port this endpoint refers to. Mutually exclusive with targetPort. |
|
|
ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint. |
|
|
RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields. The original scrape job’s name is available via the |
|
|
RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines |
|
|
HTTP scheme to use for scraping. |
|
|
Timeout after which the scrape is ended If not specified, the Prometheus global scrape interval is used. |
|
|
Deprecated: Use 'port' instead. |
|
|
TLS configuration to use when scraping the endpoint. |