prometheus-community / smartctl_exporter

Export smartctl statistics to prometheus
Apache License 2.0
293 stars 88 forks source link

Create fake "smartctl --json --scan" for testing #227

Open NiceGuyIT opened 5 months ago

NiceGuyIT commented 5 months ago

Fake data can be fed to smartctl_exporter by using the --smartctl.fake-data flag which reads the JSON from ./testdata for devices. readSMARTctlDevices() exec's smartctl --json --scan to get the list of devices. It would be nice to provide "fake" scan data to use for testing purposes.