diff --git a/hosts/arashi/default.nix b/hosts/arashi/default.nix index 842ade8..b09307b 100644 --- a/hosts/arashi/default.nix +++ b/hosts/arashi/default.nix @@ -4,7 +4,6 @@ ./services ./networking.nix ../../modules - ../../modules/prometheus/exporters/postgres.nix ]; boot.loader = { diff --git a/hosts/arashi/services/default.nix b/hosts/arashi/services/default.nix index 6946ce7..51d4ace 100644 --- a/hosts/arashi/services/default.nix +++ b/hosts/arashi/services/default.nix @@ -3,5 +3,6 @@ _: { ./restic.nix ./postgresql.nix ./redis.nix + ./exporters.nix ]; } diff --git a/hosts/arashi/services/exporters.nix b/hosts/arashi/services/exporters.nix new file mode 100644 index 0000000..88e761a --- /dev/null +++ b/hosts/arashi/services/exporters.nix @@ -0,0 +1,13 @@ +_: { + services.prometheus.exporters.redis = { + enable = true; + openFirewall = true; + port = 9002; + }; + + services.prometheus.exporters.postgres = { + enable = true; + openFirewall = true; + port = 9003; + }; +}