mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
hardware/drive-monitor: add monitoring
This commit is contained in:
parent
8445c7b767
commit
8c6850d7ef
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue