Use unified CPU metric description on OpenBSD (#810)

This commit is contained in:
Ralf Horstmann 2018-02-01 23:59:19 +01:00 committed by Ben Kochie
parent fde5d2c6c9
commit 29ac809e48
1 changed files with 1 additions and 5 deletions

View File

@ -39,11 +39,7 @@ func init() {
func NewCpuCollector() (Collector, error) { func NewCpuCollector() (Collector, error) {
return &cpuCollector{ return &cpuCollector{
cpu: typedDesc{prometheus.NewDesc( cpu: typedDesc{nodeCpuSecondsDesc, prometheus.CounterValue},
prometheus.BuildFQName(namespace, "cpu", "seconds_total"),
"Seconds the CPU spent in each mode.",
[]string{"cpu", "mode"}, nil,
), prometheus.CounterValue},
}, nil }, nil
} }