remove error from signature; update doc for function

Signed-off-by: david <davidventura27@gmail.com>
This commit is contained in:
david 2021-12-17 21:32:37 +01:00 committed by DavidVentura
parent 840d32622f
commit 75c05f3d97

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.