Documentation ¶
Index ¶
Constants ¶
View Source
const ( //pluginName namespace part Name = "cpu" // version of cpu plugin Version = 7 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUCollector ¶
type CPUCollector struct {
// contains filtered or unexported fields
}
stats - metrics per cpu read from file /proc/stat:
map ["all": map["user_jiffies": x
"user_percentage" x ... ] "0": map["user_jiffies": x "user_percentage" x ... ] "1": ... ]
func (*CPUCollector) CollectMetrics ¶
CollectMetrics returns list of requested metric values It returns error in case retrieval was not successful
func (*CPUCollector) GetMetricTypes ¶
GetMetricTypes returns list of available metric types It returns error in case retrieval was not successful
Click to show internal directories.
Click to hide internal directories.