From 4116aafceed76d04dedad8bbee89af3417b8b9d8 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 25 Aug 2023 09:41:36 -0700 Subject: [PATCH] add option to enable debug logging in grafana --- modules/monitoring.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 0031aa8..bb49d5b 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -26,6 +26,13 @@ in description = "domain under which home-assistant will be served."; example = "mydomain.com"; }; + + debugLog = lib.mkOption { + type = lib.types.bool; + description = "Set to true to enable debug logging of the infrastructure serving Grafana."; + default = false; + example = true; + }; }; config = lib.mkIf cfg.enable { @@ -64,6 +71,7 @@ in http_port = 3000; domain = fqdn; root_url = "https://${fqdn}"; + router_logging = cfg.debugLog; }; }; };