From a1ec6b1a0d53c2a01ed283e49ef35fb81760a48a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 27 Aug 2025 21:19:14 +0200 Subject: tente: replace gotify with grafana-matrix-forwarder --- nixos/hosts/tente/monitoring.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'nixos/hosts/tente/monitoring.nix') diff --git a/nixos/hosts/tente/monitoring.nix b/nixos/hosts/tente/monitoring.nix index a999c8a..f6ed7cf 100644 --- a/nixos/hosts/tente/monitoring.nix +++ b/nixos/hosts/tente/monitoring.nix @@ -9,6 +9,9 @@ in grafanaUiPort = lib.mkOption { type = lib.types.int; }; + grafanaMatrixForwarderPort = lib.mkOption { + type = lib.types.int; + }; lokiPort = lib.mkOption { type = lib.types.int; }; @@ -21,13 +24,19 @@ in prometheusSqlExporterPort = lib.mkOption { type = lib.types.int; }; + matrixServerUrl = lib.mkOption { + type = lib.types.str; + }; }; imports = [ + ]; config = { + age.secrets.grafana-matrix-forwarder-env.file = ; + services.grafana = { enable = true; settings = { @@ -54,6 +63,12 @@ in ]; }; }; + services.grafana-matrix-forwarder = { + enable = true; + port = cfg.grafanaMatrixForwarderPort; + homeserver = cfg.matrixServerUrl; + environmentFile = config.age.secrets.grafana-matrix-forwarder-env.path; + }; services.prometheus = { enable = true; -- cgit v1.2.3