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 = {
|
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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue