mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #147056 from mweinelt/smartctl-exporter
This commit is contained in:
commit
0c008f9c0d
6 changed files with 177 additions and 0 deletions
|
@ -1018,6 +1018,25 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
smartctl = {
|
||||
exporterConfig = {
|
||||
enable = true;
|
||||
devices = [
|
||||
"/dev/vda"
|
||||
];
|
||||
};
|
||||
exporterTest = ''
|
||||
wait_for_unit("prometheus-smartctl-exporter.service")
|
||||
wait_for_open_port("9633")
|
||||
wait_until_succeeds(
|
||||
"curl -sSf 'localhost:9633/metrics'"
|
||||
)
|
||||
wait_until_succeeds(
|
||||
'journalctl -eu prometheus-smartctl-exporter.service -o cat | grep "/dev/vda: Unable to detect device type"'
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
||||
smokeping = {
|
||||
exporterConfig = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue