Skip to content

Commit

Permalink
fix: Increase Fluent Bit Kubernetes filter buffer (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrkl authored Feb 29, 2024
1 parent 4965934 commit 964bdd8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/telemetry/logpipeline_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ var _ = Describe("LogPipeline controller", Ordered, func() {
name kubernetes
match log-pipeline.*
annotations off
buffer_size 1MB
k8s-logging.exclude off
k8s-logging.parser on
kube_tag_prefix log-pipeline.var.log.containers.
Expand Down
2 changes: 2 additions & 0 deletions internal/fluentbit/config/builder/config_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func TestMergeSectionsConfig(t *testing.T) {
name kubernetes
match foo.*
annotations on
buffer_size 1MB
k8s-logging.exclude off
k8s-logging.parser on
kube_tag_prefix foo.var.log.containers.
Expand Down Expand Up @@ -197,6 +198,7 @@ func TestMergeSectionsConfigCustomOutput(t *testing.T) {
name kubernetes
match foo.*
annotations on
buffer_size 1MB
k8s-logging.exclude off
k8s-logging.parser on
kube_tag_prefix foo.var.log.containers.
Expand Down
1 change: 1 addition & 0 deletions internal/fluentbit/config/builder/kubernetes_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func createKubernetesFilter(pipeline *telemetryv1alpha1.LogPipeline) string {
AddConfigParam("kube_tag_prefix", fmt.Sprintf("%s.var.log.containers.", pipeline.Name)).
AddConfigParam("annotations", fmt.Sprintf("%v", fluentBitFlag(pipeline.Spec.Input.Application.KeepAnnotations))).
AddConfigParam("labels", fmt.Sprintf("%v", fluentBitFlag(!pipeline.Spec.Input.Application.DropLabels))).
AddConfigParam("buffer_size", "1MB").
Build()
}

Expand Down
2 changes: 2 additions & 0 deletions internal/fluentbit/config/builder/kubernetes_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func TestCreateKubernetesFilterKeepAll(t *testing.T) {
name kubernetes
match test-logpipeline.*
annotations on
buffer_size 1MB
k8s-logging.exclude off
k8s-logging.parser on
kube_tag_prefix test-logpipeline.var.log.containers.
Expand All @@ -38,6 +39,7 @@ func TestCreateKubernetesFilterDropAll(t *testing.T) {
name kubernetes
match test-logpipeline.*
annotations off
buffer_size 1MB
k8s-logging.exclude off
k8s-logging.parser on
kube_tag_prefix test-logpipeline.var.log.containers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
name kubernetes
match logpipeline-1.*
annotations off
buffer_size 1MB
k8s-logging.exclude off
k8s-logging.parser on
kube_tag_prefix logpipeline-1.var.log.containers.
Expand Down

0 comments on commit 964bdd8

Please sign in to comment.