diff options
Diffstat (limited to 'sysutils/prometheus-smartctl-exporter/files/patch-options.go')
-rw-r--r-- | sysutils/prometheus-smartctl-exporter/files/patch-options.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/prometheus-smartctl-exporter/files/patch-options.go b/sysutils/prometheus-smartctl-exporter/files/patch-options.go new file mode 100644 index 000000000000..0bf25b9742b8 --- /dev/null +++ b/sysutils/prometheus-smartctl-exporter/files/patch-options.go @@ -0,0 +1,20 @@ +--- options.go.orig 2020-11-14 15:36:34 UTC ++++ options.go +@@ -32,7 +32,7 @@ type Options struct { + + // Parse options from yaml config file + func loadOptions() Options { +- configFile := flag.String("config", "/etc/smartctl_exporter.yaml", "Path to smartctl_exporter config file") ++ configFile := flag.String("config", "/usr/local/etc/prometheus-smartctl-exporter.yml", "Path to smartctl_exporter config file") + verbose := flag.Bool("verbose", false, "Verbose log output") + debug := flag.Bool("debug", false, "Debug log output") + version := flag.Bool("version", false, "Show application version and exit") +@@ -56,7 +56,7 @@ func loadOptions() Options { + BindTo: "9633", + URLPath: "/metrics", + FakeJSON: false, +- SMARTctlLocation: "/usr/sbin/smartctl", ++ SMARTctlLocation: "/usr/local/sbin/smartctl", + CollectPeriod: "60s", + Devices: []string{}, + }, |