mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-02-02 08:42:31 -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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateStat reads /proc/stat through procfs and exports CPU-related metrics.
|
// updateIsolated reads /sys/devices/system/cpu/isolated through sysfs and exports isolation level metrics.
|
||||||
func (c *cpuCollector) updateIsolated(ch chan<- prometheus.Metric) error {
|
func (c *cpuCollector) updateIsolated(ch chan<- prometheus.Metric) {
|
||||||
for _, cpu := range c.isolatedCpus {
|
for _, cpu := range c.isolatedCpus {
|
||||||
cpuNum := strconv.Itoa(int(cpu))
|
cpuNum := strconv.Itoa(int(cpu))
|
||||||
ch <- prometheus.MustNewConstMetric(c.cpuIsolated, prometheus.GaugeValue, 1.0, cpuNum)
|
ch <- prometheus.MustNewConstMetric(c.cpuIsolated, prometheus.GaugeValue, 1.0, cpuNum)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateStat reads /proc/stat through procfs and exports CPU-related metrics.
|
// updateStat reads /proc/stat through procfs and exports CPU-related metrics.
|
||||||
|
|
Loading…
Reference in a new issue