From 21bf4848bb3dd028dc2f11d0bc1efdf5d0e0766b Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Sat, 14 Feb 2026 16:48:24 +0100 Subject: [PATCH] Fix the Grafana Alloy --- nix-system-configs/modules/system/gramethus.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nix-system-configs/modules/system/gramethus.nix b/nix-system-configs/modules/system/gramethus.nix index 05cbead..d282ded 100644 --- a/nix-system-configs/modules/system/gramethus.nix +++ b/nix-system-configs/modules/system/gramethus.nix @@ -210,19 +210,13 @@ in { # Add a simple systemd service to run the Grafana Agent (Alloy) systemd.services.grafana-agent = { - description = "Grafana Alloy - journal -> loki"; + description = "Grafana Alloy"; wantedBy = ["multi-user.target"]; serviceConfig = { - # Ensure persistent dir for positions exists - ExecStartPre = '' - mkdir -p /var/lib/grafana-agent - chown root:root /var/lib/grafana-agent - ''; - # The grafana-agent binary provided by nixpkgs ExecStart = '' - ${pkgs.grafana-alloy}/bin/grafana-alloy --config.file /etc/alloy/config.alloy + ${pkgs.grafana-alloy}/bin/alloy --config.file /etc/alloy/config.alloy ''; Restart = "on-failure";