Skip to content
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

namespaced tag re_emitter parameters support #1085

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

chrono2002
Copy link
Contributor

@chrono2002 chrono2002 commented Mar 7, 2024

Adds parameters to fine-tune namespaced tag re_emitter.
Same as: #1069 but for namespaced filters.
Fixes issues with emitter pause on overflow.

None
Usage:

apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBitConfig
metadata:
  name: fluent-bit-config
  labels:
    app.kubernetes.io/name: fluent-bit
spec:
  filterSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  outputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  parserSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  service:
    emitterName: test
    emitterStorageType: filesystem
    emitterMemBufLimit: 16MB

generates config like this:

[Filter]
    Name    rewrite_tag
    Match    kube.*
    Rule    $kubernetes['namespace_name'] ^(test)$ 5236c06addf811b0eaf2fabbd31c89f2.$TAG false
    Emitter_Name    test
    Emitter_Storage.type    filesystem
    Emitter_Mem_Buf_Limit    16MB

Signed-off-by: Paul Smith <chrono2002@gmail.com>
@benjaminhuo benjaminhuo merged commit ebef5c5 into fluent:master Mar 8, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants