diff --git a/metrics/pve_node_status_collector.go b/metrics/pve_node_status_collector.go index c32b2ea..f4d283a 100644 --- a/metrics/pve_node_status_collector.go +++ b/metrics/pve_node_status_collector.go @@ -248,6 +248,8 @@ func (c *PveNodeStatusCollector) CollectMetrics() error { return err } else { c.state.With(labels).Set(float64(node.Online)) + c.cpus.With(labels).Set(float64(status.CPUInfo.CPUs)) + c.cpuUsage.With(labels).Set(float64(status.CPU)) c.uptime.With(labels).Set(float64(status.Uptime)) c.memBytes.With(labels).Set(float64(status.Memory.Total)) c.memBytesUsed.With(labels).Set(float64(status.Memory.Used))