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; + }; +}