fluentbit: fix unit startup
This commit is contained in:
parent
503f1c31ea
commit
db0b5df83d
2 changed files with 11 additions and 6 deletions
|
|
@ -629,13 +629,15 @@ in
|
|||
host = "localhost";
|
||||
port = config.services.loki.configuration.server.http_listen_port;
|
||||
|
||||
labels = {
|
||||
job = "systemd-journal";
|
||||
domain = cfg.domain;
|
||||
hostname = config.networking.hostName;
|
||||
};
|
||||
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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ let
|
|||
{ ... }:
|
||||
[
|
||||
"grafana.service"
|
||||
"fluent-bit.service"
|
||||
"loki.service"
|
||||
"netdata.service"
|
||||
];
|
||||
waitForPorts =
|
||||
{ node, ... }:
|
||||
|
|
|
|||
Loading…
Reference in a new issue