prometheus operator v0.71.2

ServiceMonitor.spec.endpoints[].oauth2.clientId.configMap.spec

Specification of desired Service selection for target discovery by Prometheus.

13 fields
ServiceMonitor.spec.endpoints[].oauth2.clientId.configMap.spec fields and descriptions
Field / TypeDescription
object

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

object[]

List of endpoints part of this ServiceMonitor.

jobLabel
string

`jobLabel` selects the label from the associated Kubernetes `Service` object which will be used as the `job` label for all metrics. For example if `jobLabel` is set to `foo` and the Kubernetes `Service` 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 or if the label doesn't exist for the given Service, the `job` label of the metrics defaults to the name of the associated Kubernetes `Service`.

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 `Endpoints` objects are discovered from.

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 `Endpoints` objects.

  • x-kubernetes-map-type: "atomic"
string[]

`targetLabels` defines the labels which are transferred from the associated Kubernetes `Service` object onto the ingested metrics.

targetLimit
integer

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

  • format: int64