1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

Document disableCompaction defaulting when using thanos sidecar ()

* docs: disableCompaction defaulting when using thanos sidecar

For the Prometheus CRD, the operator default to true for
`spec.disableCompaction` when `spec.thanos.objectStorageConfig(|File)`
is defined, but this is not documented anywhere but in code (and in
kube-prometheus-stack helm chart values, as it turns out).


---------

Signed-off-by: Max Gautier <mg@max.gautier.name>
This commit is contained in:
Max Gautier 2024-11-21 17:48:24 +01:00 committed by GitHub
parent f13acd0ae2
commit fede8822f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 21 additions and 6 deletions
Documentation
bundle.yaml
example
jsonnet/prometheus-operator
pkg/apis/monitoring/v1

8
Documentation/api.md generated
View file

@ -3161,7 +3161,9 @@ bool
</em>
</td>
<td>
<p>When true, the Prometheus compaction is disabled.</p>
<p>When true, the Prometheus compaction is disabled.
When <code>spec.thanos.objectStorageConfig</code> or <code>spec.objectStorageConfigFile</code> are defined, the operator automatically
disables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).</p>
</td>
</tr>
<tr>
@ -13032,7 +13034,9 @@ bool
</em>
</td>
<td>
<p>When true, the Prometheus compaction is disabled.</p>
<p>When true, the Prometheus compaction is disabled.
When <code>spec.thanos.objectStorageConfig</code> or <code>spec.objectStorageConfigFile</code> are defined, the operator automatically
disables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).</p>
</td>
</tr>
<tr>

5
bundle.yaml generated
View file

@ -35231,7 +35231,10 @@ spec:
type: object
type: array
disableCompaction:
description: When true, the Prometheus compaction is disabled.
description: |-
When true, the Prometheus compaction is disabled.
When `spec.thanos.objectStorageConfig` or `spec.objectStorageConfigFile` are defined, the operator automatically
disables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).
type: boolean
dnsConfig:
description: Defines the DNS configuration for the pods.

View file

@ -3523,7 +3523,10 @@ spec:
type: object
type: array
disableCompaction:
description: When true, the Prometheus compaction is disabled.
description: |-
When true, the Prometheus compaction is disabled.
When `spec.thanos.objectStorageConfig` or `spec.objectStorageConfigFile` are defined, the operator automatically
disables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).
type: boolean
dnsConfig:
description: Defines the DNS configuration for the pods.

View file

@ -3524,7 +3524,10 @@ spec:
type: object
type: array
disableCompaction:
description: When true, the Prometheus compaction is disabled.
description: |-
When true, the Prometheus compaction is disabled.
When `spec.thanos.objectStorageConfig` or `spec.objectStorageConfigFile` are defined, the operator automatically
disables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).
type: boolean
dnsConfig:
description: Defines the DNS configuration for the pods.

View file

@ -3044,7 +3044,7 @@
"type": "array"
},
"disableCompaction": {
"description": "When true, the Prometheus compaction is disabled.",
"description": "When true, the Prometheus compaction is disabled.\nWhen `spec.thanos.objectStorageConfig` or `spec.objectStorageConfigFile` are defined, the operator automatically\ndisables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).",
"type": "boolean"
},
"dnsConfig": {

View file

@ -992,6 +992,8 @@ type PrometheusSpec struct {
RetentionSize ByteSize `json:"retentionSize,omitempty"`
// When true, the Prometheus compaction is disabled.
// When `spec.thanos.objectStorageConfig` or `spec.objectStorageConfigFile` are defined, the operator automatically
// disables block compaction to avoid race conditions during block uploads (as the Thanos documentation recommends).
DisableCompaction bool `json:"disableCompaction,omitempty"`
// Defines the configuration of the Prometheus rules' engine.