about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-23T12·04+0100
committertazjin <mail@tazj.in>2020-08-23T20·45+0000
commitd4824b64f6682ceab54fcbf8c0922143facb5aec (patch)
treedcb9d9fb06991954a19fc101e9f53b4e8cf7b305
parent1cf11317cac2c11d20b2324d4283814f1351c1a3 (diff)
feat(whitby): Enable log forwarding via journaldriver r/1705
Change-Id: I474159acfe514f6f2eb7867e4eba854016590ab1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1836
Tested-by: BuildkiteCI
Reviewed-by: isomer <isomer@tvl.fyi>
-rw-r--r--ops/nixos/whitby/default.nix7
1 files changed, 7 insertions, 0 deletions
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"];