Fix quoting in nvidia_smi input
This commit is contained in:
parent
7591a50d52
commit
9a14d1f074
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue