hosts: enable prometheus metrics

This commit is contained in:
Lu Wang 2024-12-21 20:11:58 +08:00
parent 8bb43c697c
commit a06f67bf23
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU
6 changed files with 23 additions and 2 deletions

View file

@ -1,10 +1,17 @@
{ {
suites, suites,
profiles,
mylib, mylib,
... ...
}: }:
{ {
imports = suites.server ++ (mylib.path.scanPaths ./. "default.nix"); imports =
suites.server
++ (with profiles; [
services.caddy
services.prometheus.node-exporter
])
++ (mylib.path.scanPaths ./. "default.nix");
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -1,10 +1,17 @@
{ {
suites, suites,
profiles,
mylib, mylib,
... ...
}: }:
{ {
imports = suites.server ++ (mylib.path.scanPaths ./. "default.nix"); imports =
suites.server
++ (with profiles; [
services.caddy
services.prometheus.node-exporter
])
++ (mylib.path.scanPaths ./. "default.nix");
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View file

@ -8,7 +8,9 @@
imports = imports =
suites.server suites.server
++ (with profiles; [ ++ (with profiles; [
services.caddy
services.knot.secondary services.knot.secondary
services.prometheus.node-exporter
]) ])
++ (mylib.path.scanPaths ./. "default.nix"); ++ (mylib.path.scanPaths ./. "default.nix");

View file

@ -8,7 +8,9 @@
imports = imports =
suites.server suites.server
++ (with profiles; [ ++ (with profiles; [
services.caddy
services.knot.primary services.knot.primary
services.prometheus.node-exporter
]) ])
++ (mylib.path.scanPaths ./. "default.nix"); ++ (mylib.path.scanPaths ./. "default.nix");

View file

@ -8,7 +8,9 @@
imports = imports =
suites.server suites.server
++ (with profiles; [ ++ (with profiles; [
services.caddy
services.knot.secondary services.knot.secondary
services.prometheus.node-exporter
]) ])
++ (mylib.path.scanPaths ./. "default.nix"); ++ (mylib.path.scanPaths ./. "default.nix");

View file

@ -20,6 +20,7 @@
services.miniflux services.miniflux
services.ntfy services.ntfy
services.postgresql services.postgresql
services.prometheus.node-exporter
services.well-known services.well-known
]) ])
++ (mylib.path.scanPaths ./. "default.nix"); ++ (mylib.path.scanPaths ./. "default.nix");