fluent-operator icon indicating copy to clipboard operation
fluent-operator copied to clipboard

Add a new way to deploy fluentbit

Open wenchajun opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Since fluentbit upgraded to 1.9, many plugins have been added, such as the Prometheus Scrape Metrics plugin, but it is not convenient to collect some information if configured in the form of daemonset. So I would like to add the statefulset method to deploy fluentbit.

Describe the solution you'd like

To do this we need to add a new CRD, our CRD based on fluentbit's statefulset can be called collector.

Describe alternatives you've considered

To do this we may also need to modify the fluentbit-controller.

Additional context

No response

wenchajun avatar May 26 '22 09:05 wenchajun

How do you grab all pods logs if FB is not deployed as Daemonset ? FB reads files on each nodes to collect pods logs. If you have FB on only some K8s nodes, you'll be missing plenty of pod logs.

jcdauchy-moodys avatar Aug 08 '22 07:08 jcdauchy-moodys

How do you grab all pods logs if FB is not deployed as Daemonset ? FB reads files on each nodes to collect pods logs. If you have FB on only some K8s nodes, you'll be missing plenty of pod logs. @jcdauchy-moodys

Fluent Operator support deploying fluent bit as a daemonset already. What we're talking about in this issue is the requirement to deploy fluentbit as a statefulset to scrap Prometheus metrics which doesn't require to be deployed as a daemonset

benjaminhuo avatar Aug 09 '22 01:08 benjaminhuo

Add FluentBit collector is helpful in scenarios of collecting data through the network including the following input plugins:

  • https://docs.fluentbit.io/manual/pipeline/inputs/opentelemetry
  • https://docs.fluentbit.io/manual/pipeline/inputs/prometheus-scrape-metrics
  • https://docs.fluentbit.io/manual/pipeline/inputs/collectd
  • https://docs.fluentbit.io/manual/pipeline/inputs/forward
  • https://docs.fluentbit.io/manual/pipeline/inputs/http
  • https://docs.fluentbit.io/manual/pipeline/inputs/mqtt
  • https://docs.fluentbit.io/manual/pipeline/inputs/nginx
  • https://docs.fluentbit.io/manual/pipeline/inputs/statsd
  • https://docs.fluentbit.io/manual/pipeline/inputs/syslog
  • https://docs.fluentbit.io/manual/pipeline/inputs/syslog
  • https://docs.fluentbit.io/manual/pipeline/inputs/tcp

related PR: https://github.com/fluent/fluent-operator/pull/484

benjaminhuo avatar Dec 06 '22 02:12 benjaminhuo