Skip to content

Commit 2388fde

Browse files
committed
added crd
Signed-off-by: ProCodec <[email protected]>
1 parent b50c4ad commit 2388fde

File tree

8 files changed

+134
-0
lines changed

8 files changed

+134
-0
lines changed

apis/fluentbit/v1alpha2/plugins/output/zz_generated.deepcopy.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,21 @@ spec:
23712371
items:
23722372
type: string
23732373
type: array
2374+
structuredMetadata:
2375+
additionalProperties:
2376+
type: string
2377+
description: |-
2378+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
2379+
This is used for high cardinality data that isn't suited for using labels.
2380+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
2381+
type: object
2382+
structuredMetadataKeys:
2383+
description: |-
2384+
Optional list of record keys that will be placed as structured metadata.
2385+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
2386+
items:
2387+
type: string
2388+
type: array
23742389
tenantID:
23752390
description: |-
23762391
Tenant ID used by default to push logs to Loki.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,21 @@ spec:
23712371
items:
23722372
type: string
23732373
type: array
2374+
structuredMetadata:
2375+
additionalProperties:
2376+
type: string
2377+
description: |-
2378+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
2379+
This is used for high cardinality data that isn't suited for using labels.
2380+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
2381+
type: object
2382+
structuredMetadataKeys:
2383+
description: |-
2384+
Optional list of record keys that will be placed as structured metadata.
2385+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
2386+
items:
2387+
type: string
2388+
type: array
23742389
tenantID:
23752390
description: |-
23762391
Tenant ID used by default to push logs to Loki.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,21 @@ spec:
23712371
items:
23722372
type: string
23732373
type: array
2374+
structuredMetadata:
2375+
additionalProperties:
2376+
type: string
2377+
description: |-
2378+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
2379+
This is used for high cardinality data that isn't suited for using labels.
2380+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
2381+
type: object
2382+
structuredMetadataKeys:
2383+
description: |-
2384+
Optional list of record keys that will be placed as structured metadata.
2385+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
2386+
items:
2387+
type: string
2388+
type: array
23742389
tenantID:
23752390
description: |-
23762391
Tenant ID used by default to push logs to Loki.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,21 @@ spec:
23712371
items:
23722372
type: string
23732373
type: array
2374+
structuredMetadata:
2375+
additionalProperties:
2376+
type: string
2377+
description: |-
2378+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
2379+
This is used for high cardinality data that isn't suited for using labels.
2380+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
2381+
type: object
2382+
structuredMetadataKeys:
2383+
description: |-
2384+
Optional list of record keys that will be placed as structured metadata.
2385+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
2386+
items:
2387+
type: string
2388+
type: array
23742389
tenantID:
23752390
description: |-
23762391
Tenant ID used by default to push logs to Loki.

docs/plugins/fluentbit/output/loki.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The loki output plugin, allows to ingest your records into a Loki service. <br /
2020
| lineFormat | Format to use when flattening the record to a log line. Valid values are json or key_value. If set to json, the log line sent to Loki will be the Fluent Bit record dumped as JSON. If set to key_value, the log line will be each item in the record concatenated together (separated by a single space) in the format. | string |
2121
| autoKubernetesLabels | If set to true, it will add all Kubernetes labels to the Stream labels. | string |
2222
| tenantIDKey | Specify the name of the key from the original record that contains the Tenant ID. The value of the key is set as X-Scope-OrgID of HTTP header. It is useful to set Tenant ID dynamically. | string |
23+
| structuredMetadata | Stream structured metadata for API request. It can be multiple comma separated key=value pairs. This is used for high cardinality data that isn't suited for using labels. Only supported in Loki 3.0+ with schema v13 and TSDB storage. | map[string]string |
24+
| structuredMetadataKeys | Optional list of record keys that will be placed as structured metadata. This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys. | []string |
2325
| tls | | *[plugins.TLS](../tls.md) |
2426
| networking | Include fluentbit networking options for this output-plugin | *plugins.Networking |
2527
| totalLimitSize | Limit the maximum number of Chunks in the filesystem for the current output logical destination. | string |

manifests/setup/fluent-operator-crd.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6433,6 +6433,21 @@ spec:
64336433
items:
64346434
type: string
64356435
type: array
6436+
structuredMetadata:
6437+
additionalProperties:
6438+
type: string
6439+
description: |-
6440+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
6441+
This is used for high cardinality data that isn't suited for using labels.
6442+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
6443+
type: object
6444+
structuredMetadataKeys:
6445+
description: |-
6446+
Optional list of record keys that will be placed as structured metadata.
6447+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
6448+
items:
6449+
type: string
6450+
type: array
64366451
tenantID:
64376452
description: |-
64386453
Tenant ID used by default to push logs to Loki.
@@ -35290,6 +35305,21 @@ spec:
3529035305
items:
3529135306
type: string
3529235307
type: array
35308+
structuredMetadata:
35309+
additionalProperties:
35310+
type: string
35311+
description: |-
35312+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
35313+
This is used for high cardinality data that isn't suited for using labels.
35314+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
35315+
type: object
35316+
structuredMetadataKeys:
35317+
description: |-
35318+
Optional list of record keys that will be placed as structured metadata.
35319+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
35320+
items:
35321+
type: string
35322+
type: array
3529335323
tenantID:
3529435324
description: |-
3529535325
Tenant ID used by default to push logs to Loki.

manifests/setup/setup.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6433,6 +6433,21 @@ spec:
64336433
items:
64346434
type: string
64356435
type: array
6436+
structuredMetadata:
6437+
additionalProperties:
6438+
type: string
6439+
description: |-
6440+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
6441+
This is used for high cardinality data that isn't suited for using labels.
6442+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
6443+
type: object
6444+
structuredMetadataKeys:
6445+
description: |-
6446+
Optional list of record keys that will be placed as structured metadata.
6447+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
6448+
items:
6449+
type: string
6450+
type: array
64366451
tenantID:
64376452
description: |-
64386453
Tenant ID used by default to push logs to Loki.
@@ -35290,6 +35305,21 @@ spec:
3529035305
items:
3529135306
type: string
3529235307
type: array
35308+
structuredMetadata:
35309+
additionalProperties:
35310+
type: string
35311+
description: |-
35312+
Stream structured metadata for API request. It can be multiple comma separated key=value pairs.
35313+
This is used for high cardinality data that isn't suited for using labels.
35314+
Only supported in Loki 3.0+ with schema v13 and TSDB storage.
35315+
type: object
35316+
structuredMetadataKeys:
35317+
description: |-
35318+
Optional list of record keys that will be placed as structured metadata.
35319+
This allows using record accessor patterns (e.g. $kubernetes['pod_name']) to reference record keys.
35320+
items:
35321+
type: string
35322+
type: array
3529335323
tenantID:
3529435324
description: |-
3529535325
Tenant ID used by default to push logs to Loki.

0 commit comments

Comments
 (0)