bvm-logger: enable journal2clickhouse for real
This commit is contained in:
parent
7b4e6c0e1b
commit
730d057e18
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue