diff --git a/common/general/reporting.nix b/common/general/reporting.nix index 8042c3d..24fd48b 100644 --- a/common/general/reporting.nix +++ b/common/general/reporting.nix @@ -15,7 +15,12 @@ in options = { } // lib.attrsets.setAttrByPath cfg_path { - enable = lib.mkEnabledOption true "Reporting node and logs"; + enable = lib.mkEnableOption "Reporting node info and logs to grafana"; + lokiUrl = lib.mkOption { + type = lib.types.str; + default = "http://100.64.0.13:3100/loki/api/v1/push"; + description = "URL of the Loki instance to send logs to"; + }; }; config = lib.mkIf cfg.enable { @@ -45,7 +50,7 @@ in }; clients = [ { - url = "http://100.64.0.13:3100/loki/api/v1/push"; # Points to your Loki instance + url = cfg.lokiUrl; } ]; scrape_configs = [