From 9aeb7313b47f359029b7b28e96a520615c2ef94d Mon Sep 17 00:00:00 2001 From: daragh Date: Thu, 23 May 2024 02:10:16 +0100 Subject: [PATCH] Moved grafana / prometheus to kitt --- machines/kitt.nix | 26 ++++++++++++++++++++++++++ machines/marvin.nix | 26 -------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/machines/kitt.nix b/machines/kitt.nix index 5891571..88f383c 100644 --- a/machines/kitt.nix +++ b/machines/kitt.nix @@ -9,6 +9,7 @@ Role: LDAP Server Notes: */ { + config, pkgs, lib, nodes, @@ -25,6 +26,8 @@ in { ../applications/discord.nix ../applications/bitwarden/vaultwarden.nix ../applications/bitwarden/bitwarden_sync.nix + ../applications/grafana.nix + ../applications/prometheus.nix ]; deployment = { @@ -77,4 +80,27 @@ in { name = name; }; }; + services.skynet.prometheus = { + server = { + host = { + ip = ip_pub; + name = name; + }; + }; + }; + + services.skynet.grafana = { + enable = true; + + host = { + ip = ip_pub; + name = name; + }; + + # maybe just do provision config directly ? + datasource = { + name = "Prometheus"; + url = "localhost:${toString config.services.prometheus.port}"; + }; + }; } diff --git a/machines/marvin.nix b/machines/marvin.nix index e4df5dc..3bb6d1e 100644 --- a/machines/marvin.nix +++ b/machines/marvin.nix @@ -26,8 +26,6 @@ Notes: groups_trusted = map (x: "@${x}") groups; in { imports = [ - ../applications/grafana.nix - ../applications/prometheus.nix ]; deployment = { @@ -52,30 +50,6 @@ in { sudo_groups = groups; }; - services.skynet.prometheus = { - server = { - host = { - ip = ip_pub; - name = name; - }; - }; - }; - - services.skynet.grafana = { - enable = true; - - host = { - ip = ip_pub; - name = name; - }; - - # maybe just do provision config directly ? - datasource = { - name = "Prometheus"; - url = "localhost:${toString config.services.prometheus.port}"; - }; - }; - skynet_dns.records = [ { record = name;