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";
port = config.services.loki.configuration.server.http_listen_port;
labels = {
labels = lib.traceValSeq (
lib.concatMapAttrsStringSep ", " (n: v: "${n}=${v}") {
job = "systemd-journal";
domain = cfg.domain;
hostname = config.networking.hostName;
};
}
);
label_keys = "unit";
label_keys = "$unit";
}
];
};

View file

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