Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 @@ -46,6 +46,9 @@ type OpenTelemetry struct {
*plugins.Networking `json:"networking,omitempty"`
// Limit the maximum number of Chunks in the filesystem for the current output logical destination.
TotalLimitSize string `json:"totalLimitSize,omitempty"`
// Set the maximum number of log records to be flushed at a time.
// +kubebuilder:validation:Minimum:=0
BatchSize *int32 `json:"batchSize,omitempty"`
Comment on lines +49 to +51
}

// Name implement Section() method
Expand Down Expand Up @@ -101,6 +104,7 @@ func (o *OpenTelemetry) Params(sl plugins.SecretLoader) (*params.KVs, error) {
}

plugins.InsertKVString(kvs, "storage.total_limit_size", o.TotalLimitSize)
plugins.InsertKVField(kvs, "batch_size", o.BatchSize)

return kvs, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func TestOpenTelemetry_Params(t *testing.T) {
LogsBodyKey: "expected_logs_body_key",
TLS: &plugins.TLS{Verify: utils.ToPtr(false)},
Networking: &plugins.Networking{SourceAddress: utils.ToPtr("expected_source_address")},
BatchSize: utils.ToPtr[int32](512),
}

expected := params.NewKVs()
Expand All @@ -59,6 +60,7 @@ func TestOpenTelemetry_Params(t *testing.T) {
expected.Insert("tls", "On")
expected.Insert("tls.verify", "false")
expected.Insert("net.source_address", "expected_source_address")
expected.Insert("batch_size", "512")

kvs, err := ot.Params(sl)
g.Expect(err).NotTo(HaveOccurred())
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3174,6 +3174,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
6 changes: 6 additions & 0 deletions charts/fluent-operator/crds/fluentbit.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3174,6 +3174,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/output/open_telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ The OpenTelemetry plugin allows you to take logs, metrics, and traces from Fluen
| tls | | *[plugins.TLS](../tls.md) |
| networking | Include fluentbit networking options for this output-plugin | *[plugins.Networking](../net.md) |
| totalLimitSize | Limit the maximum number of Chunks in the filesystem for the current output logical destination. | string |
| batchSize | Set the maximum number of log records to be flushed at a time. | *int32 |
12 changes: 12 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7375,6 +7375,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down Expand Up @@ -38051,6 +38057,12 @@ spec:
exposed through the OpenTelemetry exporter. You may have multiple
of these fields.
type: object
batchSize:
description: Set the maximum number of log records to be flushed
at a time.
format: int32
minimum: 0
type: integer
header:
additionalProperties:
type: string
Expand Down
Loading