https://github.com/deric/puppet-fluentbit
https://github.com/deric/puppet-fluentbit
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/deric/puppet-fluentbit
- Owner: deric
- Created: 2023-07-18T14:47:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T10:28:11.000Z (about 1 year ago)
- Last Synced: 2025-04-23T03:49:17.837Z (about 1 year ago)
- Language: Puppet
- Size: 144 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# puppet-fluentbit [](https://forge.puppet.com/modules/deric/fluentbit) [](https://github.com/deric/puppet-fluentbit/actions/workflows/test.yml)
A Puppet module to manage [Fluent Bit](https://fluentbit.io/) installation.
## Description
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:
```puppet
include fluentbit
```
## Usage
[Fluent Bit supports wide range of inputs](https://docs.fluentbit.io/manual/pipeline/inputs)

Define some inputs:
```yaml
fluentbit::inputs:
'tail-syslog':
plugin: tail
properties:
path: /var/syslog
```
[outputs](https://docs.fluentbit.io/manual/pipeline/outputs):
```yaml
fluentbit::outputs:
'prometheus':
plugin: prometheus_exporter
properties:
match: nginx.metrics.*
host: 0.0.0.0
port: 2021
```
Service configuration:
```yaml
fluentbit::service:
log_level: debug
mem_buf_limit: 50MB
storage.pause_on_chunks_overlimit: 'on'
```
Use specific `fluent-bit` version:
```yaml
fluentbit::package_ensure: 3.2.9
```
## Configuration
Limit maximum memory usage per systemd unit:
```yaml
fluentbit::service_override_unit_file: true
fluentbit::memory_max: 2G
```
All Puppet variables are documented in [REFERENCE.md](./REFERENCE.md).
### Acceptance tests
```
BEAKER_destroy=no BEAKER_setfile=debian11-64 bundle exec rake beaker
```