Skip to content

Commit 3c872e8

Browse files
committed
Add storage.total_limit_size to OpenTelemetry output plugin
Signed-off-by: sugaf1204 <[email protected]>
1 parent 94691d0 commit 3c872e8

File tree

7 files changed

+36
-0
lines changed

7 files changed

+36
-0
lines changed

apis/fluentbit/v1alpha2/plugins/output/open_telemetry_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ type OpenTelemetry struct {
4444
*plugins.TLS `json:"tls,omitempty"`
4545
// Include fluentbit networking options for this output-plugin
4646
*plugins.Networking `json:"networking,omitempty"`
47+
// Limit the maximum number of Chunks in the filesystem for the current output logical destination.
48+
TotalLimitSize string `json:"totalLimitSize,omitempty"`
4749
}
4850

4951
// Name implement Section() method
@@ -98,5 +100,7 @@ func (o *OpenTelemetry) Params(sl plugins.SecretLoader) (*params.KVs, error) {
98100
kvs.Merge(net)
99101
}
100102

103+
plugins.InsertKVString(kvs, "storage.total_limit_size", o.TotalLimitSize)
104+
101105
return kvs, nil
102106
}

charts/fluent-bit-crds/templates/fluentbit.fluent.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,10 @@ spec:
30863086
description: Hostname to be used for TLS SNI extension
30873087
type: string
30883088
type: object
3089+
totalLimitSize:
3090+
description: Limit the maximum number of Chunks in the filesystem
3091+
for the current output logical destination.
3092+
type: string
30893093
tracesUri:
30903094
description: 'Specify an optional HTTP URI for the target web
30913095
server listening for traces, e.g: /v1/traces'

charts/fluent-bit-crds/templates/fluentbit.fluent.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,10 @@ spec:
30863086
description: Hostname to be used for TLS SNI extension
30873087
type: string
30883088
type: object
3089+
totalLimitSize:
3090+
description: Limit the maximum number of Chunks in the filesystem
3091+
for the current output logical destination.
3092+
type: string
30893093
tracesUri:
30903094
description: 'Specify an optional HTTP URI for the target web
30913095
server listening for traces, e.g: /v1/traces'

config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3083,6 +3083,10 @@ spec:
30833083
description: Hostname to be used for TLS SNI extension
30843084
type: string
30853085
type: object
3086+
totalLimitSize:
3087+
description: Limit the maximum number of Chunks in the filesystem
3088+
for the current output logical destination.
3089+
type: string
30863090
tracesUri:
30873091
description: 'Specify an optional HTTP URI for the target web
30883092
server listening for traces, e.g: /v1/traces'

config/crd/bases/fluentbit.fluent.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3083,6 +3083,10 @@ spec:
30833083
description: Hostname to be used for TLS SNI extension
30843084
type: string
30853085
type: object
3086+
totalLimitSize:
3087+
description: Limit the maximum number of Chunks in the filesystem
3088+
for the current output logical destination.
3089+
type: string
30863090
tracesUri:
30873091
description: 'Specify an optional HTTP URI for the target web
30883092
server listening for traces, e.g: /v1/traces'

manifests/setup/fluent-operator-crd.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7209,6 +7209,10 @@ spec:
72097209
description: Hostname to be used for TLS SNI extension
72107210
type: string
72117211
type: object
7212+
totalLimitSize:
7213+
description: Limit the maximum number of Chunks in the filesystem
7214+
for the current output logical destination.
7215+
type: string
72127216
tracesUri:
72137217
description: 'Specify an optional HTTP URI for the target web
72147218
server listening for traces, e.g: /v1/traces'
@@ -36922,6 +36926,10 @@ spec:
3692236926
description: Hostname to be used for TLS SNI extension
3692336927
type: string
3692436928
type: object
36929+
totalLimitSize:
36930+
description: Limit the maximum number of Chunks in the filesystem
36931+
for the current output logical destination.
36932+
type: string
3692536933
tracesUri:
3692636934
description: 'Specify an optional HTTP URI for the target web
3692736935
server listening for traces, e.g: /v1/traces'

manifests/setup/setup.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7209,6 +7209,10 @@ spec:
72097209
description: Hostname to be used for TLS SNI extension
72107210
type: string
72117211
type: object
7212+
totalLimitSize:
7213+
description: Limit the maximum number of Chunks in the filesystem
7214+
for the current output logical destination.
7215+
type: string
72127216
tracesUri:
72137217
description: 'Specify an optional HTTP URI for the target web
72147218
server listening for traces, e.g: /v1/traces'
@@ -36922,6 +36926,10 @@ spec:
3692236926
description: Hostname to be used for TLS SNI extension
3692336927
type: string
3692436928
type: object
36929+
totalLimitSize:
36930+
description: Limit the maximum number of Chunks in the filesystem
36931+
for the current output logical destination.
36932+
type: string
3692536933
tracesUri:
3692636934
description: 'Specify an optional HTTP URI for the target web
3692736935
server listening for traces, e.g: /v1/traces'

0 commit comments

Comments
 (0)