diff --git a/modules/wireguard-monitoring/default.nix b/modules/wireguard-monitoring/default.nix index 7290394..70e2008 100644 --- a/modules/wireguard-monitoring/default.nix +++ b/modules/wireguard-monitoring/default.nix @@ -84,6 +84,21 @@ in { }; }; + users.users.promtail.extraGroups = lib.mkIf config.services.nginx.enable [ "nginx" ]; + # services.promtail.configuration.scrape_configs = [ + # { + # job_name = "nginx-error-logs"; + # static_configs = [{ + # targets = [ "localhost" ]; + # labels = { + # job = "nginx-error-logs"; + # host = config.networking.hostName; + # __path__ = "/var/log/nginx/*error.log"; + # }; + # }]; + # } + # ]; + # wait for wireguard before starting node-exporter systemd.services.prometheus-node-exporter.after = [ "wireguard-wg0.service" ]; };