ScrapeConfig.spec.hetznerSDConfigs[]
HetznerSDConfig allow retrieving scrape targets from Hetzner Cloud API and Robot API. This service discovery uses the public IPv4 address by default, but that can be changed with relabeling See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#hetzner_sd_config
| Field / Type | Description |
|---|---|
authorization defines the header configuration to authenticate against the Hetzner API. Cannot be set at the same time as `oauth2`. | |
basicAuth defines information to use on every scrape request. | |
enableHTTP2 | enableHTTP2 defines whether to enable HTTP2. |
followRedirects | followRedirects defines whether HTTP requests follow HTTP 3xx redirects. |
labelSelector | labelSelector defines the label selector used to filter the servers when fetching them from the API. It requires Prometheus >= v3.5.0.
|
noProxy | 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. |
oauth2 defines the configuration to use on every scrape request. | |
port | port defines the port to scrape metrics from. If using the public IP address, this must
|
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.
| |
proxyFromEnvironment | 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 | proxyUrl defines the HTTP proxy server to use.
|
refreshInterval | refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
|
role | role defines the Hetzner role of entities that should be discovered.
|
tlsConfig defines the TLS configuration to connect to the Hetzner API. |