Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make receiver log level configurable #171 #172

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.