diff --git a/charts/thanos-operator/crds/monitoring.banzaicloud.io_receivers.yaml b/charts/thanos-operator/crds/monitoring.banzaicloud.io_receivers.yaml index cb1bf7c4..135412fb 100644 --- a/charts/thanos-operator/crds/monitoring.banzaicloud.io_receivers.yaml +++ b/charts/thanos-operator/crds/monitoring.banzaicloud.io_receivers.yaml @@ -419,6 +419,8 @@ spec: additionalProperties: type: string type: object + logLevel: + type: string metaOverrides: properties: annotations: diff --git a/config/crd/bases/monitoring.banzaicloud.io_receivers.yaml b/config/crd/bases/monitoring.banzaicloud.io_receivers.yaml index cb1bf7c4..135412fb 100644 --- a/config/crd/bases/monitoring.banzaicloud.io_receivers.yaml +++ b/config/crd/bases/monitoring.banzaicloud.io_receivers.yaml @@ -419,6 +419,8 @@ spec: additionalProperties: type: string type: object + logLevel: + type: string metaOverrides: properties: annotations: diff --git a/pkg/resources/receiver/statefulset.go b/pkg/resources/receiver/statefulset.go index f133caa4..2b1ee9fb 100644 --- a/pkg/resources/receiver/statefulset.go +++ b/pkg/resources/receiver/statefulset.go @@ -52,7 +52,6 @@ func (r receiverInstance) statefulset() (runtime.Object, reconciler.DesiredState "--receive.hashrings-file=/etc/hashring/hashring.json", fmt.Sprintf("--receive.replication-factor=%d", 1), "--label=receive_replica=\"$(NAME)\"", - "--log.level=debug", }, Env: []corev1.EnvVar{ { diff --git a/pkg/sdk/api/v1alpha1/receiver_types.go b/pkg/sdk/api/v1alpha1/receiver_types.go index 4519a5a3..80b67794 100644 --- a/pkg/sdk/api/v1alpha1/receiver_types.go +++ b/pkg/sdk/api/v1alpha1/receiver_types.go @@ -105,6 +105,8 @@ type ReceiverGroup struct { TSDBWalCompression *bool `json:"tsdbWalCompression,omitempty" thanos:"--tsdb.wal-compression"` // Do not create lockfile in TSDB data directory. In any case, the lockfiles will be deleted on next startup. TSDBNoLockfile *bool `json:"tsdbNoLockfile,omitempty" thanos:"--tsdb.no-lockfile"` + // Log level + LogLevel string `json:"logLevel,omitempty" thanos:"--log.level=%s"` } // ObjectStoreStatus defines the observed state of ObjectStore