Skip to content

Commit

Permalink
Make receiver log level configurable #171
Browse files Browse the repository at this point in the history
  • Loading branch information
sancyx committed Feb 25, 2022
1 parent 0b717e0 commit 259ae35
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ spec:
additionalProperties:
type: string
type: object
logLevel:
type: string
metaOverrides:
properties:
annotations:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/monitoring.banzaicloud.io_receivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ spec:
additionalProperties:
type: string
type: object
logLevel:
type: string
metaOverrides:
properties:
annotations:
Expand Down
1 change: 0 additions & 1 deletion pkg/resources/receiver/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down
2 changes: 2 additions & 0 deletions pkg/sdk/api/v1alpha1/receiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pkg/sdk/api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/sdk/resourcebuilder/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 259ae35

Please sign in to comment.