|
|
@ -89,8 +89,7 @@ func init() {
|
|
|
|
Factories["cpu"] = NewStatCollector
|
|
|
|
Factories["cpu"] = NewStatCollector
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Takes a prometheus registry and returns a new Collector exposing
|
|
|
|
// NewStatCollector returns a new Collector exposing CPU stats.
|
|
|
|
// CPU stats.
|
|
|
|
|
|
|
|
func NewStatCollector() (Collector, error) {
|
|
|
|
func NewStatCollector() (Collector, error) {
|
|
|
|
return &statCollector{
|
|
|
|
return &statCollector{
|
|
|
|
cpu: typedDesc{prometheus.NewDesc(
|
|
|
|
cpu: typedDesc{prometheus.NewDesc(
|
|
|
|