Skip to content

Commit a4537ef

Browse files
mob-galtrynmarcofranssen
authored andcommitted
adds support for workers to syslog output
Signed-off-by: Nick Galtry <nick.galtry@mobilise.cloud>
1 parent b494b7d commit a4537ef

8 files changed

Lines changed: 52 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ type Syslog struct {
4545
*plugins.Networking `json:"networking,omitempty"`
4646
// Limit the maximum number of Chunks in the filesystem for the current output logical destination.
4747
TotalLimitSize string `json:"totalLimitSize,omitempty"`
48+
// Enables dedicated thread(s) for this output. Default value is set since version 1.8.13. For previous versions is 0.
49+
Workers *int32 `json:"workers,omitempty"`
4850
}
4951

5052
func (*Syslog) Name() string {
@@ -69,6 +71,7 @@ func (s *Syslog) Params(sl plugins.SecretLoader) (*params.KVs, error) {
6971
plugins.InsertKVString(kvs, "syslog_sd_key", s.SyslogSDKey)
7072
plugins.InsertKVString(kvs, "storage.total_limit_size", s.TotalLimitSize)
7173
plugins.InsertKVField(kvs, "syslog_maxsize", s.SyslogMaxSize)
74+
plugins.InsertKVField(kvs, "Workers", s.Workers)
7275

7376
if s.TLS != nil {
7477
tls, err := s.TLS.Params(sl)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4239,6 +4239,12 @@ spec:
42394239
description: Limit the maximum number of Chunks in the filesystem
42404240
for the current output logical destination.
42414241
type: string
4242+
workers:
4243+
description: Enables dedicated thread(s) for this output. Default
4244+
value is set since version 1.8.13. For previous versions is
4245+
0.
4246+
format: int32
4247+
type: integer
42424248
type: object
42434249
tcp:
42444250
description: TCP defines TCP Output configuration.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4239,6 +4239,12 @@ spec:
42394239
description: Limit the maximum number of Chunks in the filesystem
42404240
for the current output logical destination.
42414241
type: string
4242+
workers:
4243+
description: Enables dedicated thread(s) for this output. Default
4244+
value is set since version 1.8.13. For previous versions is
4245+
0.
4246+
format: int32
4247+
type: integer
42424248
type: object
42434249
tcp:
42444250
description: TCP defines TCP Output configuration.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4236,6 +4236,12 @@ spec:
42364236
description: Limit the maximum number of Chunks in the filesystem
42374237
for the current output logical destination.
42384238
type: string
4239+
workers:
4240+
description: Enables dedicated thread(s) for this output. Default
4241+
value is set since version 1.8.13. For previous versions is
4242+
0.
4243+
format: int32
4244+
type: integer
42394245
type: object
42404246
tcp:
42414247
description: TCP defines TCP Output configuration.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4236,6 +4236,12 @@ spec:
42364236
description: Limit the maximum number of Chunks in the filesystem
42374237
for the current output logical destination.
42384238
type: string
4239+
workers:
4240+
description: Enables dedicated thread(s) for this output. Default
4241+
value is set since version 1.8.13. For previous versions is
4242+
0.
4243+
format: int32
4244+
type: integer
42394245
type: object
42404246
tcp:
42414247
description: TCP defines TCP Output configuration.

docs/plugins/fluentbit/output/syslog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ Syslog output plugin allows you to deliver messages to Syslog servers. <br /> **
2121
| tls | Syslog output plugin supports TTL/SSL, for more details about the properties available and general configuration, please refer to the TLS/SSL section. | *[plugins.TLS](../tls.md) |
2222
| networking | Include fluentbit networking options for this output-plugin | *plugins.Networking |
2323
| totalLimitSize | Limit the maximum number of Chunks in the filesystem for the current output logical destination. | string |
24+
| workers | Enables dedicated thread(s) for this output. Default value is set since version 1.8.13. For previous versions is 0. | *int32 |

manifests/setup/fluent-operator-crd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8389,6 +8389,12 @@ spec:
83898389
description: Limit the maximum number of Chunks in the filesystem
83908390
for the current output logical destination.
83918391
type: string
8392+
workers:
8393+
description: Enables dedicated thread(s) for this output. Default
8394+
value is set since version 1.8.13. For previous versions is
8395+
0.
8396+
format: int32
8397+
type: integer
83928398
type: object
83938399
tcp:
83948400
description: TCP defines TCP Output configuration.
@@ -38442,6 +38448,12 @@ spec:
3844238448
description: Limit the maximum number of Chunks in the filesystem
3844338449
for the current output logical destination.
3844438450
type: string
38451+
workers:
38452+
description: Enables dedicated thread(s) for this output. Default
38453+
value is set since version 1.8.13. For previous versions is
38454+
0.
38455+
format: int32
38456+
type: integer
3844538457
type: object
3844638458
tcp:
3844738459
description: TCP defines TCP Output configuration.

manifests/setup/setup.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8389,6 +8389,12 @@ spec:
83898389
description: Limit the maximum number of Chunks in the filesystem
83908390
for the current output logical destination.
83918391
type: string
8392+
workers:
8393+
description: Enables dedicated thread(s) for this output. Default
8394+
value is set since version 1.8.13. For previous versions is
8395+
0.
8396+
format: int32
8397+
type: integer
83928398
type: object
83938399
tcp:
83948400
description: TCP defines TCP Output configuration.
@@ -38442,6 +38448,12 @@ spec:
3844238448
description: Limit the maximum number of Chunks in the filesystem
3844338449
for the current output logical destination.
3844438450
type: string
38451+
workers:
38452+
description: Enables dedicated thread(s) for this output. Default
38453+
value is set since version 1.8.13. For previous versions is
38454+
0.
38455+
format: int32
38456+
type: integer
3844538457
type: object
3844638458
tcp:
3844738459
description: TCP defines TCP Output configuration.

0 commit comments

Comments
 (0)