From 730d057e1850d0fedf81e49ed2540dfedb224a21 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 1 Jan 2022 15:24:32 +0000 Subject: [PATCH] bvm-logger: enable journal2clickhouse for real --- ops/nixos/bvm-logger/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ops/nixos/bvm-logger/default.nix b/ops/nixos/bvm-logger/default.nix index 53efa2be55..5d4f9cf193 100644 --- a/ops/nixos/bvm-logger/default.nix +++ b/ops/nixos/bvm-logger/default.nix @@ -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; }; };