mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
Merge config changes
This commit is contained in:
parent
2f4d563976
commit
508bd94ac9
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue