From eaa22d8e4c295de6a4328df316ae226cd09b145a Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Wed, 3 May 2023 12:12:13 +0200 Subject: [PATCH] Take logs from Docker Signed-off-by: Magic_RB --- nixos/systems/blowhole/monitoring.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/systems/blowhole/monitoring.nix b/nixos/systems/blowhole/monitoring.nix index 47eb55f..0c84b7e 100644 --- a/nixos/systems/blowhole/monitoring.nix +++ b/nixos/systems/blowhole/monitoring.nix @@ -287,6 +287,10 @@ in # } # ]; + inputs.docker_log = { + tags.bucket = "logs"; + }; + outputs.influxdb_v2 = [ { urls = [ "http://${secret.network.ips.blowhole.ip}:8086" ]; @@ -304,6 +308,10 @@ in } ]; }; + + systemd = { + serviceConfig.SupplementaryGroups = [ "docker" ]; + }; }; fileSystems."/var/lib/grafana" = {