From d4824b64f6682ceab54fcbf8c0922143facb5aec Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 23 Aug 2020 13:04:36 +0100 Subject: feat(whitby): Enable log forwarding via journaldriver Change-Id: I474159acfe514f6f2eb7867e4eba854016590ab1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1836 Tested-by: BuildkiteCI Reviewed-by: isomer --- ops/nixos/whitby/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index 17bd2b721362..4a65b542f388 100644 --- a/ops/nixos/whitby/default.nix +++ b/ops/nixos/whitby/default.nix @@ -320,6 +320,13 @@ in lib.fix(self: { timerConfig.OnCalendar = "hourly"; }; + services.journaldriver = { + enable = true; + googleCloudProject = "tvl-fyi"; + logStream = "whitby"; + applicationCredentials = "/var/lib/journaldriver/key.json"; + }; + security.sudo.extraRules = [ { groups = ["wheel"]; -- cgit 1.4.1