From 4a102117a43207899787d4e285cd7dcbbdb3fa53 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 21 Oct 2024 11:19:40 +0200 Subject: [PATCH] feat(storage01): Init victoria-metrics DB --- machines/storage01/_configuration.nix | 1 + machines/storage01/victoria-metrics.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 machines/storage01/victoria-metrics.nix diff --git a/machines/storage01/_configuration.nix b/machines/storage01/_configuration.nix index 06cdb05..e877967 100644 --- a/machines/storage01/_configuration.nix +++ b/machines/storage01/_configuration.nix @@ -18,6 +18,7 @@ lib.extra.mkConfig { "peertube" "prometheus" "redirections" + "victoria-metrics" ]; extraConfig = { diff --git a/machines/storage01/victoria-metrics.nix b/machines/storage01/victoria-metrics.nix new file mode 100644 index 0000000..fb04c89 --- /dev/null +++ b/machines/storage01/victoria-metrics.nix @@ -0,0 +1,16 @@ +let + host = "victoria-metrics.dgnum.eu"; + port = 9099; +in + +{ + services.victoriametrics = { + enable = true; + + listenAddress = "127.0.0.1:${builtins.toString port}"; + }; + + dgn-web.simpleProxies.victoria-metrics = { + inherit host port; + }; +}