From 2c9ee605b46fe120ee7923dcf0468f8825b206ab Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 17 Jan 2024 08:53:41 -0500 Subject: [PATCH] arashi: init exporters --- hosts/arashi/default.nix | 1 - hosts/arashi/services/default.nix | 1 + hosts/arashi/services/exporters.nix | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hosts/arashi/services/exporters.nix 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; + }; +}