bvm-logger: enable journal2clickhouse for real

This commit is contained in:
Luke Granger-Brown 2022-01-01 15:24:32 +00:00
parent 7b4e6c0e1b
commit 730d057e18

View file

@ -34,12 +34,14 @@ in {
systemd.services.journal2clickhouse = {
enable = true;
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = let
hosts = lib.concatStringsSep "," (lib.mapAttrsToList (k: v: "${k}=${v.addr}") depot.ops.nixos.scrapeJournalHosts);
in
"${depot.go.journal2clickhouse}/bin/journal2clickhouse -clickhouse_addr http://localhost:8123 -hosts '${hosts}'";
User = "journal2clickhouse";
DynamicUser = true;
};
};