A Puppet module to manage Fluent Bit installation.
Fluent Bit is a fast, lightweight agent for trasporting logs, metrics, traces, etc.
In order to install the package and setup fluent-bit service, simply include the main class:
include fluentbitFluent Bit supports wide range of inputs
Define some inputs:
fluentbit::inputs:
'tail-syslog':
plugin: tail
properties:
path: /var/syslogfluentbit::outputs:
'prometheus':
plugin: prometheus_exporter
properties:
match: nginx.metrics.*
host: 0.0.0.0
port: 2021Service configuration:
fluentbit::service:
log_level: debug
mem_buf_limit: 50MB
storage.pause_on_chunks_overlimit: 'on'Use specific fluent-bit version:
fluentbit::package_ensure: 3.2.9Limit maximum memory usage per systemd unit:
fluentbit::service_override_unit_file: true
fluentbit::memory_max: 2GYou increase number of opened file descriptors for fluent-bit.service. Either by passing single value like 32768 (same soft and hard limit) or by setting both limits:
limit_nofile: '8192:16384'All Puppet variables are documented in REFERENCE.md.
BEAKER_destroy=no BEAKER_setfile=debian11-64 bundle exec rake beaker
