prometheus operator v0.71.2

ServiceMonitor.spec.endpoints.tlsConfig.cert.configMap.spec.endpoints

List of endpoints part of this ServiceMonitor.

22 fields
ServiceMonitor.spec.endpoints.tlsConfig.cert.configMap.spec.endpoints fields and descriptions
Field / TypeDescription
object

`authorization` configures the Authorization header credentials to use when scraping the target. Cannot be set at the same time as `basicAuth`, or `oauth2`.

object

`basicAuth` configures the Basic Authentication credentials to use when scraping the target. Cannot be set at the same time as `authorization`, or `oauth2`.

bearerTokenFile
string

File to read bearer token for scraping the target. Deprecated: use `authorization` instead.

object

`bearerTokenSecret` specifies a key of a Secret containing the bearer token for scraping targets. The secret needs to be in the same namespace as the ServiceMonitor object and readable by the Prometheus Operator. Deprecated: use `authorization` instead.

  • x-kubernetes-map-type: "atomic"
enableHttp2
boolean

`enableHttp2` can be used to disable HTTP2 when scraping the target.

filterRunning
boolean

When true, the pods which are not running (e.g. either in Failed or Succeeded state) are dropped during the target discovery. If unset, the filtering is enabled. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase

followRedirects
boolean

`followRedirects` defines whether the scrape requests should follow HTTP 3xx redirects.

honorLabels
boolean

When true, `honorLabels` preserves the metric's labels when they collide with the target's labels.

honorTimestamps
boolean

`honorTimestamps` controls whether Prometheus preserves the timestamps when exposed by the target.

interval
string

Interval at which Prometheus scrapes the metrics from the target. If empty, Prometheus uses the global scrape interval.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
object[]

`metricRelabelings` configures the relabeling rules to apply to the samples before ingestion.

object

`oauth2` configures the OAuth2 settings to use when scraping the target. It requires Prometheus >= 2.27.0. Cannot be set at the same time as `authorization`, or `basicAuth`.

map[string]string[]

params define optional HTTP URL parameters.

path
string

HTTP path from which to scrape for metrics. If empty, Prometheus uses the default value (e.g. `/metrics`).

port
string

Name of the Service port which this endpoint refers to. It takes precedence over `targetPort`.

proxyUrl
string

`proxyURL` configures the HTTP Proxy URL (e.g. "http://proxyserver:2195") to go through when scraping the target.

object[]

`relabelings` configures the relabeling rules to apply the target's metadata labels. The Operator automatically adds relabelings for a few standard Kubernetes fields. The original scrape job's name is available via the `__tmp_prometheus_job_name` label. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config

scheme
string

HTTP scheme to use for scraping. `http` and `https` are the expected values unless you rewrite the `__scheme__` label via relabeling. If empty, Prometheus uses the default value `http`.

  • enum: ["http","https"]
scrapeTimeout
string

Timeout after which Prometheus considers the scrape to be failed. If empty, Prometheus uses the global scrape timeout unless it is less than the target's scrape interval value in which the latter is used.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
integer | string

Name or number of the target port of the `Pod` object behind the Service, the port must be specified with container port property. Deprecated: use `port` instead.

  • x-kubernetes-int-or-string: true
object

TLS configuration to use when scraping the target.

trackTimestampsStaleness
boolean

`trackTimestampsStaleness` defines whether Prometheus tracks staleness of the metrics that have an explicit timestamp present in scraped data. Has no effect if `honorTimestamps` is false. It requires Prometheus >= v2.48.0.