prometheus operator v0.93.1

ScrapeConfig.spec.openstackSDConfigs.tlsConfig.ca.secret.spec.consulSDConfigs

consulSDConfigs defines a list of Consul service discovery configurations.

25 fields
ScrapeConfig.spec.openstackSDConfigs.tlsConfig.ca.secret.spec.consulSDConfigs fields and descriptions
Field / TypeDescription
allowStale
boolean

allowStale 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 defines the header configuration to authenticate against the Consul Server. Cannot be set at the same time as `basicAuth`, or `oauth2`.

object

basicAuth defines the information to authenticate against the Consul Server. More info: https://prometheus.io/docs/operating/configuration/#endpoints Cannot be set at the same time as `authorization`, or `oauth2`.

datacenter
string

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

  • minLength: 1
enableHTTP2
boolean

enableHTTP2 defines whether to enable HTTP2.

filter
string

filter defines the filter expression used to filter the catalog results. See https://developer.hashicorp.com/consul/api-docs/catalog#filtering It requires Prometheus >= 3.0.0.

  • minLength: 1
followRedirects
boolean

followRedirects defines whether HTTP requests follow HTTP 3xx redirects.

healthFilter
string

healthFilter defines the filter expression used to filter the health results. See https://developer.hashicorp.com/consul/api-docs/health#filtering It requires Prometheus >= 3.11.2.

  • minLength: 1
namespace
string

namespace are only supported in Consul Enterprise. It requires Prometheus >= 2.28.0.

  • minLength: 1
noProxy
string

noProxy defines 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, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

map[string]string

nodeMeta defines the node metadata key/value pairs to filter nodes for a given service. Starting with Consul 1.14, it is recommended to use `filter` with the `NodeMeta` selector instead.

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

oauth2 defines the optional OAuth 2.0 configuration to authenticate against the target HTTP endpoint. Cannot be set at the same time as `authorization`, or `basicAuth`.

partition
string

partition defines the admin Partitions are only supported in Consul Enterprise.

  • minLength: 1
pathPrefix
string

pathPrefix defines the prefix for URIs for when consul is behind an API gateway (reverse proxy). It requires Prometheus >= 2.45.0.

  • minLength: 1
map[string]object[]

proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests. It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

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

proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY). It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.

proxyUrl
string

proxyUrl defines the HTTP proxy server to use.

  • pattern: ^(http|https|socks5)://.+$
refreshInterval
string

refreshInterval defines the time after which the provided names are refreshed. If not set, 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

scheme defines the HTTP Scheme.

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

server defines the consul server address. A valid string consisting of a hostname or IP followed by an optional port number.

  • minLength: 1
string[]

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

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

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

  • minLength: 1
string[]

tags defines an optional list of tags used to filter nodes for a given service. Services must contain all tags in the list. Starting with Consul 1.14, it is recommended to use `filter` with the `ServiceTags` selector instead.

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

tlsConfig defines the TLS configuration to connect to the Consul API.

object

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

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