summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go')
-rw-r--r--src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go b/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go
index 5b355811ba..09dcffc768 100644
--- a/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go
+++ b/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu.go
@@ -21,18 +21,14 @@ func init() {
func New() *IntelGPU {
return &IntelGPU{
- Config: Config{
- BinaryPath: "/usr/bin/intel_gpu_top",
- },
- binName: "intel_gpu_top",
- charts: charts.Copy(),
- engines: make(map[string]bool),
+ ndsudoName: "ndsudo",
+ charts: charts.Copy(),
+ engines: make(map[string]bool),
}
}
type Config struct {
- UpdateEvery int `yaml:"update_every" json:"update_every"`
- BinaryPath string `yaml:"binary_path" json:"binary_path"`
+ UpdateEvery int `yaml:"update_every" json:"update_every"`
}
type (
@@ -42,8 +38,8 @@ type (
charts *module.Charts
- exec intelGpuTop
- binName string
+ exec intelGpuTop
+ ndsudoName string
engines map[string]bool
}