prometheus operator v0.71.2

PodMonitor.spec.podMetricsEndpoints.authorization.credentials.spec

Specification of desired Pod selection for target discovery by Prometheus.

12 fields
PodMonitor.spec.podMetricsEndpoints.authorization.credentials.spec fields and descriptions
Field / TypeDescription
object

`attachMetadata` defines additional metadata which is added to the discovered targets. It requires Prometheus >= v2.37.0.

jobLabel
string

The label to use to retrieve the job name from. `jobLabel` selects the label from the associated Kubernetes `Pod` object which will be used as the `job` label for all metrics. For example if `jobLabel` is set to `foo` and the Kubernetes `Pod` object is labeled with `foo: bar`, then Prometheus adds the `job="bar"` label to all ingested metrics. If the value of this field is empty, the `job` label of the metrics defaults to the namespace and name of the PodMonitor object (e.g. `<namespace>/<name>`).

keepDroppedTargets
integer

Per-scrape limit on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit. It requires Prometheus >= v2.47.0.

  • format: int64
labelLimit
integer

Per-scrape limit on number of labels that will be accepted for a sample. It requires Prometheus >= v2.27.0.

  • format: int64
labelNameLengthLimit
integer

Per-scrape limit on length of labels name that will be accepted for a sample. It requires Prometheus >= v2.27.0.

  • format: int64
labelValueLengthLimit
integer

Per-scrape limit on length of labels value that will be accepted for a sample. It requires Prometheus >= v2.27.0.

  • format: int64
object

Selector to select which namespaces the Kubernetes `Pods` objects are discovered from.

object[]

List of endpoints part of this PodMonitor.

string[]

`podTargetLabels` defines the labels which are transferred from the associated Kubernetes `Pod` object onto the ingested metrics.

sampleLimit
integer

`sampleLimit` defines a per-scrape limit on the number of scraped samples that will be accepted.

  • format: int64
object required

Label selector to select the Kubernetes `Pod` objects.

  • x-kubernetes-map-type: "atomic"
targetLimit
integer

`targetLimit` defines a limit on the number of scraped targets that will be accepted.

  • format: int64