hardware/drive-monitor: add monitoring

This commit is contained in:
Felix Buehler 2023-04-28 22:28:57 +02:00
parent 8445c7b767
commit 8c6850d7ef

View file

@ -25,5 +25,21 @@ in
}; };
}; };
}; };
# monitoring
services.prometheus.exporters.smartctl.enable = config.services.prometheus.enable;
services.prometheus.scrapeConfigs = [
{
job_name = "smartctl";
static_configs = [
{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.smartctl.port}" ];
labels = {
instance = config.networking.hostName;
};
}
];
}
];
}; };
} }