config

NixOS config
Log | Files | Refs | README | LICENSE

commit 89cf0677b22ea83febdb2989b3e1541bb38b7f59 (tree)
parent c8b2edd2fb7b39a5623ce47430c503c19f73eb35
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Sat,  9 May 2026 03:52:19 +0000

anubis monitoring

Diffstat:
Mdata.nix | 1+
Mhosts/fwminex/configuration.nix | 6++++++
Mmodules/services/gitea/default.nix | 7++++++-
3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/data.nix b/data.nix @@ -39,6 +39,7 @@ rec { weather = 9011; # non-configurable in caddy as of 2023-09-06 caddy = 2019; + anubis = 9003; }; }; diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix @@ -297,6 +297,12 @@ in static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.exporters.weather}" ]; } ]; } { + job_name = "anubis-gitea"; + # TODO https://github.com/prometheus/prometheus/pull/18091 + #static_configs = [ { targets = [ "unix:/${config.services.anubis.instances.gitea.settings.METRICS_BIND}" ]; } ]; + static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.exporters.anubis}" ]; } ]; + } + { job_name = "vno1-vinc.jakst.vpn"; static_configs = [ { targets = [ "vno1-vinc.jakst.vpn:9100" ]; } ]; } diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix @@ -32,7 +32,12 @@ services = { anubis = { - instances.gitea.settings.TARGET = "http://127.0.0.1:${toString myData.ports.gitea}"; + instances.gitea.settings = { + TARGET = "http://127.0.0.1:${toString myData.ports.gitea}"; + # TODO https://github.com/prometheus/prometheus/pull/18091 + METRICS_BIND = "127.0.0.1:${toString myData.ports.exporters.anubis}"; + METRICS_BIND_NETWORK = "tcp"; + }; }; gitea = { enable = true;