remove error from signature; update doc for function

Signed-off-by: david <davidventura27@gmail.com>
pull/2251/head
david 2021-12-17 21:32:37 +01:00 committed by DavidVentura
parent 840d32622f
commit 75c05f3d97
1 changed files with 2 additions and 4 deletions

View File

@ -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.