From 3c30e178bde05600853866d5e07d11eb83211d9b Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Sun, 12 Oct 2025 15:48:56 +0200 Subject: [PATCH] configure fluent-bit --- compose.fluent-bit.yaml | 12 ++++++++++++ compose.yaml | 2 ++ fluent-bit/fluent-bit.conf | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 compose.fluent-bit.yaml create mode 100644 fluent-bit/fluent-bit.conf diff --git a/compose.fluent-bit.yaml b/compose.fluent-bit.yaml new file mode 100644 index 0000000..ecb8625 --- /dev/null +++ b/compose.fluent-bit.yaml @@ -0,0 +1,12 @@ +services: + fluent-bit: + image: fluent/fluent-bit:4.1.1-amd64 + container_name: fluent-bit + restart: unless-stopped + ports: + - "24224:24224" + - "24224:24224/udp" + volumes: + - /opt/fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf + extra_hosts: + - host:192.168.2.200 diff --git a/compose.yaml b/compose.yaml index 9a30d72..d77e2d9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -8,10 +8,12 @@ include: # Other - compose.autoheal.yaml - compose.collectd.yaml + - compose.telegraf.yaml - compose.homarr.yaml - compose.beszel.yaml - compose.grafana.yaml - compose.photoprism.yaml + - compose.fluent-bit.yaml # Development - compose.gitea.yaml diff --git a/fluent-bit/fluent-bit.conf b/fluent-bit/fluent-bit.conf new file mode 100644 index 0000000..f9bc913 --- /dev/null +++ b/fluent-bit/fluent-bit.conf @@ -0,0 +1,16 @@ +[SERVICE] + Flush 1 + Daemon Off + Log_Level debug + +[INPUT] + Name collectd + Listen 0.0.0.0 + Port 24224 + +[OUTPUT] + Name loki + Match * + Host host + Port 3100 + Labels job=collectd