Merge config changes

This commit is contained in:
matt durham 2023-09-28 09:26:52 -04:00
parent 2f4d563976
commit 508bd94ac9
No known key found for this signature in database
GPG key ID: A62E920AE398897B
2 changed files with 1 additions and 8 deletions

View file

@ -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)
}

View file

@ -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)
}