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";
|
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";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ let
|
||||||
{ ... }:
|
{ ... }:
|
||||||
[
|
[
|
||||||
"grafana.service"
|
"grafana.service"
|
||||||
|
"fluent-bit.service"
|
||||||
|
"loki.service"
|
||||||
|
"netdata.service"
|
||||||
];
|
];
|
||||||
waitForPorts =
|
waitForPorts =
|
||||||
{ node, ... }:
|
{ node, ... }:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue