mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
remove error from signature; update doc for function
Signed-off-by: david <davidventura27@gmail.com>
This commit is contained in:
parent
840d32622f
commit
75c05f3d97
|
@ -304,14 +304,12 @@ func (c *cpuCollector) updateThermalThrottle(ch chan<- prometheus.Metric) error
|
|||
return nil
|
||||
}
|
||||
|
||||
// updateStat reads /proc/stat through procfs and exports CPU-related metrics.
|
||||
func (c *cpuCollector) updateIsolated(ch chan<- prometheus.Metric) error {
|
||||
// updateIsolated reads /sys/devices/system/cpu/isolated through sysfs and exports isolation level metrics.
|
||||
func (c *cpuCollector) updateIsolated(ch chan<- prometheus.Metric) {
|
||||
for _, cpu := range c.isolatedCpus {
|
||||
cpuNum := strconv.Itoa(int(cpu))
|
||||
ch <- prometheus.MustNewConstMetric(c.cpuIsolated, prometheus.GaugeValue, 1.0, cpuNum)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// updateStat reads /proc/stat through procfs and exports CPU-related metrics.
|
||||
|
|
Loading…
Reference in a new issue