Prometheus.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.spec.thanos
Defines the configuration of the optional Thanos sidecar. This section is experimental, it may change significantly without deprecation notice in any release.
| Field / Type | Description |
|---|---|
AdditionalArgs allows setting additional arguments for the Thanos container. The arguments are passed as-is to the Thanos container which may cause issues if they are invalid or not supported the given Thanos version. In case of an argument conflict (e.g. an argument which is already set by the operator itself) or when providing an invalid argument, the reconciliation will fail and an error will be logged. | |
baseImage | Deprecated: use 'image' instead. |
blockSize | BlockDuration controls the size of TSDB blocks produced by Prometheus. The default value is 2h to match the upstream Prometheus defaults. WARNING: Changing the block duration can impact the performance and efficiency of the entire Prometheus/Thanos stack due to how it interacts with memory and Thanos compactors. It is recommended to keep this value set to a multiple of 120 times your longest scrape or rule interval. For example, 30s * 120 = 1h.
|
getConfigInterval | How often to retrieve the Prometheus configuration.
|
getConfigTimeout | Maximum time to wait when retrieving the Prometheus configuration.
|
grpcListenLocal | When true, the Thanos sidecar listens on the loopback interface instead of the Pod IP's address for the gRPC endpoints. It has no effect if `listenLocal` is true. |
Configures the TLS parameters for the gRPC server providing the StoreAPI. Note: Currently only the `caFile`, `certFile`, and `keyFile` fields are supported. | |
httpListenLocal | When true, the Thanos sidecar listens on the loopback interface instead of the Pod IP's address for the HTTP endpoints. It has no effect if `listenLocal` is true. |
image | Container image name for Thanos. If specified, it takes precedence over the `spec.thanos.baseImage`, `spec.thanos.tag` and `spec.thanos.sha` fields. Specifying `spec.thanos.version` is still necessary to ensure the Prometheus Operator knows which version of Thanos is being configured. If neither `spec.thanos.image` nor `spec.thanos.baseImage` are defined, the operator will use the latest upstream version of Thanos available at the time when the operator was released. |
listenLocal | Deprecated: use `grpcListenLocal` and `httpListenLocal` instead. |
logFormat | Log format for the Thanos sidecar.
|
logLevel | Log level for the Thanos sidecar.
|
minTime | Defines the start of time range limit served by the Thanos sidecar's StoreAPI. The field's value should be a constant time in RFC3339 format or a time duration relative to current time, such as -1d or 2h45m. Valid duration units are ms, s, m, h, d, w, y. |
Defines the Thanos sidecar's configuration to upload TSDB blocks to object storage. More info: https://thanos.io/tip/thanos/storage.md/ objectStorageConfigFile takes precedence over this field.
| |
objectStorageConfigFile | Defines the Thanos sidecar's configuration file to upload TSDB blocks to object storage. More info: https://thanos.io/tip/thanos/storage.md/ This field takes precedence over objectStorageConfig. |
readyTimeout | ReadyTimeout is the maximum time that the Thanos sidecar will wait for Prometheus to start.
|
Defines the resources requests and limits of the Thanos sidecar. | |
sha | Deprecated: use 'image' instead. The image digest can be specified as part of the image name. |
tag | Deprecated: use 'image' instead. The image's tag can be specified as as part of the image name. |
Defines the tracing configuration for the Thanos sidecar. More info: https://thanos.io/tip/thanos/tracing.md/ This is an experimental feature, it may change in any upcoming release in a breaking way. tracingConfigFile takes precedence over this field.
| |
tracingConfigFile | Defines the tracing configuration file for the Thanos sidecar. More info: https://thanos.io/tip/thanos/tracing.md/ This is an experimental feature, it may change in any upcoming release in a breaking way. This field takes precedence over tracingConfig. |
version | Version of Thanos being deployed. The operator uses this information to generate the Prometheus StatefulSet + configuration files. If not specified, the operator assumes the latest upstream release of Thanos available at the time when the version of the operator was released. |
VolumeMounts allows configuration of additional VolumeMounts for Thanos. VolumeMounts specified will be appended to other VolumeMounts in the 'thanos-sidecar' container. |