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

fix: Fluent-bit supports the hostNetwork configuration of pod #369

Merged
merged 3 commits into from
Aug 31, 2022
Merged

fix: Fluent-bit supports the hostNetwork configuration of pod #369

merged 3 commits into from
Aug 31, 2022

Conversation

tonyzaizai
Copy link
Collaborator

Signed-off-by: tl tonyzaizai@kubesphere.io

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #355

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


Signed-off-by: tl <tonyzaizai@kubesphere.io>
host: <cloud-prometheus-service-host>
port: <cloud-prometheus-service-port>
uri: /api/v1/write
addLabels :
Copy link
Member

Choose a reason for hiding this comment

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

The labels you added are for fluent bit plugin example, should be changed to a more meaningful one

    addLabels : 
      app: fluentbit
      job: kubeedge

apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBit
metadata:
name: fluent-bit
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: fluent-bit
name: fluentbit-edge

kind: Kustomization

resources:
- fluentbit-fluentBit.yaml
Copy link
Member

@benjaminhuo benjaminhuo Aug 31, 2022

Choose a reason for hiding this comment

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

the filenames should be separated by - with no upper case

- fluentbit-fluentbit-edge.yaml
- fluentbitconfig-fluentbitconfig-edge.yaml
- input-prometheus-scrape.yaml
- output-stdout.yaml
- output-prometheus-remote-write.yaml

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterInput
metadata:
name: node-exporter-metrics
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: node-exporter-metrics
name: node-exporter-metrics-edge

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterInput
metadata:
name: prometheus-scrape
Copy link
Member

@benjaminhuo benjaminhuo Aug 31, 2022

Choose a reason for hiding this comment

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

Suggested change
name: prometheus-scrape
name: prometheus-scrape-metrics-edge

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
name: prometheus-remote-write
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: prometheus-remote-write
name: prometheus-remote-write-edge

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
name: stdout
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: stdout
name: stdout-edge

Signed-off-by: tl <tonyzaizai@kubesphere.io>
Signed-off-by: tl <tonyzaizai@kubesphere.io>
@benjaminhuo benjaminhuo merged commit 35ce4fb into fluent:master Aug 31, 2022
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.

Support prometheus scrape metrics input plugin
2 participants