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
5 changes: 5 additions & 0 deletions apis/fluentbit/v1alpha2/plugins/output/stackdriver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ type Stackdriver struct {
CustomK8sRegex string `json:"customK8sRegex,omitempty"`
// Optional list of comma seperated strings. Setting these fields overrides the Stackdriver monitored resource API values
ResourceLabels []string `json:"resourceLabels,omitempty"`
// the key to used to select the text payload from the record
TextPayloadKey string `json:"textPayloadKey,omitempty"`
}

// Name implement Section() method
Expand Down Expand Up @@ -141,5 +143,8 @@ func (o *Stackdriver) Params(sl plugins.SecretLoader) (*params.KVs, error) {
if o.ResourceLabels != nil && len(o.ResourceLabels) > 0 {
kvs.Insert("resource_labels", strings.Join(o.ResourceLabels, ","))
}
if o.TextPayloadKey != "" {
kvs.Insert("text_payload_key", o.TextPayloadKey)
}
return kvs, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -4063,6 +4063,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4063,6 +4063,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4063,6 +4063,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4063,6 +4063,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/output/stackdriver.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ Stackdriver is the Stackdriver output plugin, allows you to ingest your records
| workers | Number of dedicated threads for the Stackdriver Output Plugin | *int32 |
| customK8sRegex | A custom regex to extract fields from the local_resource_id of the logs | string |
| resourceLabels | Optional list of comma seperated strings. Setting these fields overrides the Stackdriver monitored resource API values | []string |
| textPayloadKey | the key to used to select the text payload from the record | string |
8 changes: 8 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8199,6 +8199,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down Expand Up @@ -37103,6 +37107,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down
8 changes: 8 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8199,6 +8199,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down Expand Up @@ -37103,6 +37107,10 @@ spec:
description: Identifier for a task within a namespace. Required
if Resource is generic_task
type: string
textPayloadKey:
description: the key to used to select the text payload from the
record
type: string
workers:
description: Number of dedicated threads for the Stackdriver Output
Plugin
Expand Down
Loading