Fix quoting in nvidia_smi input
This commit is contained in:
parent
7591a50d52
commit
9a14d1f074
|
@ -7,11 +7,11 @@ This plugin uses a query on the [`nvidia-smi`](https://developer.nvidia.com/nvid
|
||||||
```toml
|
```toml
|
||||||
# Pulls statistics from nvidia GPUs attached to the host
|
# Pulls statistics from nvidia GPUs attached to the host
|
||||||
[[inputs.nvidia_smi]]
|
[[inputs.nvidia_smi]]
|
||||||
## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
|
## 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
|
## Optional: timeout for GPU polling
|
||||||
# timeout = 5s
|
# timeout = "5s"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Metrics
|
### Metrics
|
||||||
|
|
|
@ -50,11 +50,11 @@ func (smi *NvidiaSMI) Description() string {
|
||||||
// SampleConfig returns the sample configuration for the NvidiaSMI plugin
|
// SampleConfig returns the sample configuration for the NvidiaSMI plugin
|
||||||
func (smi *NvidiaSMI) SampleConfig() string {
|
func (smi *NvidiaSMI) SampleConfig() string {
|
||||||
return `
|
return `
|
||||||
## Optional: path to nvidia-smi binary, defaults to $PATH via exec.LookPath
|
## 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
|
## Optional: timeout for GPU polling
|
||||||
# timeout = 5s
|
# timeout = "5s"
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue