aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/mo/monitoring/components/scrutiny.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-19 16:43:20 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-19 16:43:20 +0200
commitcf1abc83409fe36dc839d251115250765fd20091 (patch)
tree341d9a1456db216af63aa9cced7af566e71c2e3d /modules/by-name/mo/monitoring/components/scrutiny.nix
parentmodules/monitoring/: Persist all state directories (diff)
downloadnixos-server-cf1abc83409fe36dc839d251115250765fd20091.zip
modules/monitoring/{prometheus,scrutiny}: Move smartctl exporting to scrutiny
Diffstat (limited to '')
-rw-r--r--modules/by-name/mo/monitoring/components/scrutiny.nix11
1 files changed, 11 insertions, 0 deletions
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 = [