ServiceMonitor.spec.endpoints[].oauth2.clientId.configMap.spec
Specification of desired Service 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. | |
List of endpoints part of this ServiceMonitor. | |
jobLabel | `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 | 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 `Endpoints` objects are discovered from. | |
`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 `Endpoints` objects.
| |
`targetLabels` defines the labels which are transferred from the associated Kubernetes `Service` object onto the ingested metrics. | |
targetLimit | `targetLimit` defines a limit on the number of scraped targets that will be accepted.
|