Skip to content

expose Enable_Chunk_Trace in the crd, enabling TAP debuging #1588

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

Merged
merged 2 commits into from
Apr 27, 2025
Merged
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
5 changes: 5 additions & 0 deletions apis/fluentbit/v1alpha2/clusterfluentbitconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ type Storage struct {
type Service struct {
// If true go to background on start
Daemon *bool `json:"daemon,omitempty"`
// Enable input/output tracing on debug images, controlled more granualry via the http API
EnableChunkTrace *bool `json:"enableChunkTrace,omitempty"`
// Interval to flush output
FlushSeconds *float64 `json:"flushSeconds,omitempty"`
// Wait time on exit
Expand Down Expand Up @@ -153,6 +155,9 @@ func (s *Service) Params() *params.KVs {
if s.Daemon != nil {
m.Insert("Daemon", fmt.Sprint(*s.Daemon))
}
if s.EnableChunkTrace != nil {
m.Insert("Enable_Chunk_Trace", fmt.Sprint(*s.EnableChunkTrace))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
if s.FlushSeconds != nil {
m.Insert("Flush", fmt.Sprint(*s.FlushSeconds))
}
Expand Down
5 changes: 5 additions & 0 deletions apis/fluentbit/v1alpha2/zz_generated.deepcopy.go

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 @@ -299,6 +299,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_fluentbitconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down
1 change: 1 addition & 0 deletions docs/fluentbit.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ ParserSpec defines the desired state of ClusterParser
| Field | Description | Scheme |
| ----- | ----------- | ------ |
| daemon | If true go to background on start | *bool |
| enableChunkTrace | Enable input/output tracing on debug images, controlled more granualry via the http API | *bool |
| flushSeconds | Interval to flush output | *float64 |
| graceSeconds | Wait time on exit | *int64 |
| hcErrorsCount | the error count to meet the unhealthy requirement, this is a sum for all output plugins in a defined HC_Period, example for output error: [2022/02/16 10:44:10] [ warn] [engine] failed to flush chunk '1-1645008245.491540684.flb', retry in 7 seconds: task_id=0, input=forward.1 > output=cloudwatch_logs.3 (out_id=3) | *int64 |
Expand Down
8 changes: 8 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down Expand Up @@ -16538,6 +16542,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down
8 changes: 8 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down Expand Up @@ -16538,6 +16542,10 @@ spec:
type: string
emitterStorageType:
type: string
enableChunkTrace:
description: Enable input/output tracing on debug images, controlled
more granualry via the http API
type: boolean
flushSeconds:
description: Interval to flush output
type: number
Expand Down
Loading