Skip to content

Commit

Permalink
Merge config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Sep 28, 2023
1 parent 2f4d563 commit 508bd94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions collector/cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ var (
jumpBackDebugMessage = fmt.Sprintf("CPU Idle counter jumped backwards more than %f seconds, possible hotplug event, resetting CPU stats", jumpBackSeconds)
)

type CPUConfig struct {
EnableCPUGuest *bool
EnableCPUInfo *bool
FlagsInclude *string
BugsInclude *string
}

func init() {
registerCollector("cpu", defaultEnabled, NewCPUCollector)
}
Expand Down
2 changes: 1 addition & 1 deletion collector/loadavg.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewLoadavgCollector(config *NodeCollectorConfig, logger log.Logger) (Collec
}

func (c *loadavgCollector) Update(ch chan<- prometheus.Metric) error {
loads, err := getLoad()
loads, err := getLoad(c.config)
if err != nil {
return fmt.Errorf("couldn't get load: %w", err)
}
Expand Down

0 comments on commit 508bd94

Please sign in to comment.