Skip to content

Commit 1101a0a

Browse files
committed
Make receiver log level configurable #171
1 parent 0b717e0 commit 1101a0a

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

charts/thanos-operator/crds/monitoring.banzaicloud.io_receivers.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ spec:
419419
additionalProperties:
420420
type: string
421421
type: object
422+
logLevel:
423+
type: string
422424
metaOverrides:
423425
properties:
424426
annotations:

config/crd/bases/monitoring.banzaicloud.io_receivers.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ spec:
419419
additionalProperties:
420420
type: string
421421
type: object
422+
logLevel:
423+
type: string
422424
metaOverrides:
423425
properties:
424426
annotations:

pkg/resources/receiver/statefulset.go

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ func (r receiverInstance) statefulset() (runtime.Object, reconciler.DesiredState
5252
"--receive.hashrings-file=/etc/hashring/hashring.json",
5353
fmt.Sprintf("--receive.replication-factor=%d", 1),
5454
"--label=receive_replica=\"$(NAME)\"",
55-
"--log.level=debug",
5655
},
5756
Env: []corev1.EnvVar{
5857
{

pkg/sdk/api/v1alpha1/receiver_types.go

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ type ReceiverGroup struct {
105105
TSDBWalCompression *bool `json:"tsdbWalCompression,omitempty" thanos:"--tsdb.wal-compression"`
106106
// Do not create lockfile in TSDB data directory. In any case, the lockfiles will be deleted on next startup.
107107
TSDBNoLockfile *bool `json:"tsdbNoLockfile,omitempty" thanos:"--tsdb.no-lockfile"`
108+
// Log level
109+
LogLevel string `json:"logLevel,omitempty" thanos:"--log.level=%s"`
108110
}
109111

110112
// ObjectStoreStatus defines the observed state of ObjectStore

0 commit comments

Comments
 (0)