From c52991536725810f596cd25616a359a60b3d9aa7 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 27 Nov 2022 01:08:19 +0100 Subject: [PATCH] serv: add prometheus --- config/net/serv.nix | 3 +++ nix/nixos-module/collectd/default.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/config/net/serv.nix b/config/net/serv.nix index 4d3edbf..2eab97e 100644 --- a/config/net/serv.nix +++ b/config/net/serv.nix @@ -78,6 +78,7 @@ auth = "172.20.73.72"; factorio = "172.20.73.73"; zengel = "172.20.73.74"; + prometheus = "172.20.73.75"; }; ipv6Router = "serv-gw"; subnets6.dn42 = "fd23:42:c3d2:582::/64"; @@ -116,6 +117,7 @@ zengel = "fd23:42:c3d2:582:4a"; network-homepage = "fd23:42:c3d2:582:2f"; owncast = "fd23:42:c3d2:582:32"; + prometheus = "fd23:42:c3d2:582:4b"; }; hosts6.up4 = { bind = "2a00:8180:2c00:282:cd7:56ff:fe69:6366"; @@ -159,6 +161,7 @@ zengel = "2a00:8180:2c00:282::4a"; network-homepage = "2a00:8180:2c00:282::2f"; owncast = "2a00:8180:2c00:282::32"; + prometheus = "2a00:8180:2c00:282::4b"; }; }; diff --git a/nix/nixos-module/collectd/default.nix b/nix/nixos-module/collectd/default.nix index cf15a30..945a124 100644 --- a/nix/nixos-module/collectd/default.nix +++ b/nix/nixos-module/collectd/default.nix @@ -47,6 +47,7 @@ in Forward true Server "${config.site.net.serv.hosts4.spaceapi}" "${toString networkPort}" Server "${config.site.net.serv.hosts4.grafana}" "${toString networkPort}" + Server "${config.site.net.serv.hosts4.prometheus}" "${toString networkPort}" ''; plugins.mqtt = ''