Fix quoting in nvidia_smi input

This commit is contained in:
Daniel Nelson 2018-07-10 20:20:44 -07:00
parent 7591a50d52
commit 9a14d1f074
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
2 changed files with 8 additions and 8 deletions

View File

@ -8,10 +8,10 @@ This plugin uses a query on the [`nvidia-smi`](https://developer.nvidia.com/nvid
# 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
# bin_path = "/usr/bin/nvidia-smi"
## Optional: timeout for GPU polling
# timeout = 5s
# timeout = "5s"
```
### Metrics

View File

@ -51,10 +51,10 @@ func (smi *NvidiaSMI) Description() string {
func (smi *NvidiaSMI) SampleConfig() string {
return `
## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
# bin_path = /usr/bin/nvidia-smi
# bin_path = "/usr/bin/nvidia-smi"
## Optional: timeout for GPU polling
# timeout = 5s
# timeout = "5s"
`
}