aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/mo/monitoring/components/prometheus.nix9
-rw-r--r--modules/by-name/mo/monitoring/components/scrutiny.nix11
2 files changed, 11 insertions, 9 deletions
diff --git a/modules/by-name/mo/monitoring/components/prometheus.nix b/modules/by-name/mo/monitoring/components/prometheus.nix
index 44c5952..395d71a 100644
--- a/modules/by-name/mo/monitoring/components/prometheus.nix
+++ b/modules/by-name/mo/monitoring/components/prometheus.nix
@@ -58,10 +58,6 @@ in {
target = "127.0.0.1:${toString prom_cfg.exporters.node.port}";
}
{
- name = "smartctl";
- target = "127.0.0.1:${toString prom_cfg.exporters.smartctl.port}";
- }
- {
name = "prometheus_internal";
target = "127.0.0.1:${toString prom_cfg.port}";
}
@@ -182,11 +178,6 @@ in {
port = 9112;
listenAddress = "127.0.0.1";
};
- smartctl = {
- enable = true;
- port = 9115;
- listenAddress = "127.0.0.1";
- };
# services.prometheus.exporters.redis = lib.mkIf (builtins.length (lib.attrNames config.services.redis.servers) > 0) {
# enable = true;
# port = 9119;
diff --git a/modules/by-name/mo/monitoring/components/scrutiny.nix b/modules/by-name/mo/monitoring/components/scrutiny.nix
index 93212dd..70d413a 100644
--- a/modules/by-name/mo/monitoring/components/scrutiny.nix
+++ b/modules/by-name/mo/monitoring/components/scrutiny.nix
@@ -27,6 +27,10 @@ in {
extra.metrics_path = "/api/metrics";
target = "127.0.0.1:${toString config.services.scrutiny.settings.web.listen.port}";
}
+ {
+ name = "smartctl";
+ target = "127.0.0.1:${toString config.services.prometheus.exporters.smartctl.port}";
+ }
];
grafana.dashboards = [
../dashboards/Health.json
@@ -98,6 +102,13 @@ in {
};
};
};
+ prometheus = {
+ exporters.smartctl = {
+ enable = true;
+ port = 9115;
+ listenAddress = "127.0.0.1";
+ };
+ };
};
# nixpkgs.overlays = [