From 9a14d1f0743d025c3d0f0cfc02d8a88e547a107f Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 10 Jul 2018 20:20:44 -0700 Subject: [PATCH] Fix quoting in nvidia_smi input --- plugins/inputs/nvidia_smi/README.md | 8 ++++---- plugins/inputs/nvidia_smi/nvidia_smi.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/inputs/nvidia_smi/README.md b/plugins/inputs/nvidia_smi/README.md index 5d0cc99c6..97fd9ff04 100644 --- a/plugins/inputs/nvidia_smi/README.md +++ b/plugins/inputs/nvidia_smi/README.md @@ -7,11 +7,11 @@ This plugin uses a query on the [`nvidia-smi`](https://developer.nvidia.com/nvid ```toml # Pulls statistics from nvidia GPUs attached to the host [[inputs.nvidia_smi]] -## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath -# bin_path = /usr/bin/nvidia-smi + ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath + # bin_path = "/usr/bin/nvidia-smi" -## Optional: timeout for GPU polling -# timeout = 5s + ## Optional: timeout for GPU polling + # timeout = "5s" ``` ### Metrics diff --git a/plugins/inputs/nvidia_smi/nvidia_smi.go b/plugins/inputs/nvidia_smi/nvidia_smi.go index 84784b765..abce80dcb 100644 --- a/plugins/inputs/nvidia_smi/nvidia_smi.go +++ b/plugins/inputs/nvidia_smi/nvidia_smi.go @@ -50,11 +50,11 @@ func (smi *NvidiaSMI) Description() string { // SampleConfig returns the sample configuration for the NvidiaSMI plugin func (smi *NvidiaSMI) SampleConfig() string { return ` -## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath -# bin_path = /usr/bin/nvidia-smi + ## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath + # bin_path = "/usr/bin/nvidia-smi" -## Optional: timeout for GPU polling -# timeout = 5s + ## Optional: timeout for GPU polling + # timeout = "5s" ` }