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