PodMonitor.spec.podMetricsEndpoints.authorization.credentials.spec
Specification of desired Pod selection for target discovery by Prometheus.
| Field / Type | Description |
|---|---|
`attachMetadata` defines additional metadata which is added to the discovered targets. It requires Prometheus >= v2.37.0. | |
jobLabel | 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 | 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.
|
labelLimit | Per-scrape limit on number of labels that will be accepted for a sample. It requires Prometheus >= v2.27.0.
|
labelNameLengthLimit | Per-scrape limit on length of labels name that will be accepted for a sample. It requires Prometheus >= v2.27.0.
|
labelValueLengthLimit | Per-scrape limit on length of labels value that will be accepted for a sample. It requires Prometheus >= v2.27.0.
|
Selector to select which namespaces the Kubernetes `Pods` objects are discovered from. | |
List of endpoints part of this PodMonitor. | |
`podTargetLabels` defines the labels which are transferred from the associated Kubernetes `Pod` object onto the ingested metrics. | |
sampleLimit | `sampleLimit` defines a per-scrape limit on the number of scraped samples that will be accepted.
|
Label selector to select the Kubernetes `Pod` objects.
| |
targetLimit | `targetLimit` defines a limit on the number of scraped targets that will be accepted.
|