From 53bb2eda92d9976753efc5d729abdb474077ac3a Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Wed, 19 Nov 2025 04:59:48 +0000 Subject: [PATCH] remove lofi/gragana/prometheus stack in favor of beszel --- hosts/h001/mods/default.nix | 2 +- hosts/h001/mods/monitoring_agent.nix | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hosts/h001/mods/default.nix b/hosts/h001/mods/default.nix index 8f9c9bf7..2f803725 100644 --- a/hosts/h001/mods/default.nix +++ b/hosts/h001/mods/default.nix @@ -5,7 +5,7 @@ imports = [ ./litellm.nix ./nixarr.nix - ./monitoring.nix + # ./monitoring.nix # disabling ./monitoring_hub.nix ./monitoring_agent.nix ./pinchflat.nix diff --git a/hosts/h001/mods/monitoring_agent.nix b/hosts/h001/mods/monitoring_agent.nix index 1d5c3cba..99116f48 100644 --- a/hosts/h001/mods/monitoring_agent.nix +++ b/hosts/h001/mods/monitoring_agent.nix @@ -4,7 +4,7 @@ ... }: let - declaration = "services/monitoring/beszel-hub.nix"; + declaration = "services/monitoring/beszel-agent.nix"; nixpkgs = inputs.beszel-nixpkgs; pkgs = import nixpkgs { system = "x86_64-linux"; @@ -18,12 +18,13 @@ in services.beszel.agent = { package = pkgs.beszel; enable = true; - host = "100.64.0.13"; environment = { - LISTEN = "100.64.0.13:45876"; SYSTEM_NAME = config.networking.hostName; - TOKEN = "20208198-87c2-4bd1-ab09-b97c3b9c6a6e"; + LISTEN = "100.64.0.13:45876"; HUB_URL = "http://100.64.0.13:8090"; + # TODO this is only safe since I am running it in the overlay network only, rotate all keys if we change that. + TOKEN = "20208198-87c2-4bd1-ab09-b97c3b9c6a6e"; + KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcAr8fbW4XyfL/tCMeMtD+Ou/FFywCNfsHdyvYs3qXf"; }; }; };