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