fluentbit: fix unit startup

This commit is contained in:
ibizaman 2026-05-24 10:26:41 +02:00 committed by Pierre Penninckx
parent 503f1c31ea
commit db0b5df83d
2 changed files with 11 additions and 6 deletions

View file

@ -629,13 +629,15 @@ in
host = "localhost"; host = "localhost";
port = config.services.loki.configuration.server.http_listen_port; port = config.services.loki.configuration.server.http_listen_port;
labels = { labels = lib.traceValSeq (
job = "systemd-journal"; lib.concatMapAttrsStringSep ", " (n: v: "${n}=${v}") {
domain = cfg.domain; job = "systemd-journal";
hostname = config.networking.hostName; domain = cfg.domain;
}; hostname = config.networking.hostName;
}
);
label_keys = "unit"; label_keys = "$unit";
} }
]; ];
}; };

View file

@ -9,6 +9,9 @@ let
{ ... }: { ... }:
[ [
"grafana.service" "grafana.service"
"fluent-bit.service"
"loki.service"
"netdata.service"
]; ];
waitForPorts = waitForPorts =
{ node, ... }: { node, ... }: