prometheus operator v0.71.2

ScrapeConfig.spec.httpSDConfigs.tlsConfig.cert.configMap.spec.consulSDConfigs

ConsulSDConfigs defines a list of Consul service discovery configurations.

22 fields
ScrapeConfig.spec.httpSDConfigs.tlsConfig.cert.configMap.spec.consulSDConfigs fields and descriptions
Field / TypeDescription
allowStale
boolean

Allow stale Consul results (see https://www.consul.io/api/features/consistency.html). Will reduce load on Consul. If unset, Prometheus uses its default value.

object

Authorization header configuration to authenticate against the Consul Server.

object

BasicAuth information to authenticate against the Consul Server. More info: https://prometheus.io/docs/operating/configuration/#endpoints

datacenter
string

Consul Datacenter name, if not provided it will use the local Consul Agent Datacenter.

enableHTTP2
boolean

Whether to enable HTTP2. If unset, Prometheus uses its default value.

followRedirects
boolean

Configure whether HTTP requests follow HTTP 3xx redirects. If unset, Prometheus uses its default value.

namespace
string

Namespaces are only supported in Consul Enterprise.

noProxy
string

`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers. It requires Prometheus >= v2.43.0.

map[string]string

Node metadata key/value pairs to filter nodes for a given service.

  • x-kubernetes-map-type: "atomic"
object

Optional OAuth 2.0 configuration.

partition
string

Admin Partitions are only supported in Consul Enterprise.

map[string]object

ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. It requires Prometheus >= v2.43.0.

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

Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). If unset, Prometheus uses its default value. It requires Prometheus >= v2.43.0.

proxyUrl
string

`proxyURL` defines the HTTP proxy server to use. It requires Prometheus >= v2.43.0.

  • pattern: ^http(s)?://.+$
refreshInterval
string

The time after which the provided names are refreshed. On large setup it might be a good idea to increase this value because the catalog will change all the time. If unset, Prometheus uses its default value.

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

HTTP Scheme default "http"

  • enum: ["HTTP","HTTPS"]
server
string required

A valid string consisting of a hostname or IP followed by an optional port number.

  • minLength: 1
string[]

A list of services for which targets are retrieved. If omitted, all services are scraped.

  • x-kubernetes-list-type: "atomic"
tagSeparator
string

The string by which Consul tags are joined into the tag label. If unset, Prometheus uses its default value.

string[]

An optional list of tags used to filter nodes for a given service. Services must contain all tags in the list.

  • x-kubernetes-list-type: "atomic"
object

TLS Config

object

Consul ACL TokenRef, if not provided it will use the ACL from the local Consul Agent.

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