Documentation ¶
Index ¶
Constants ¶
const PREFIX = "gpu_"
Variables ¶
var NicEthPrefixs = []string{"eth"}
NicEthPrefixs store some other style of network interface name.
Functions ¶
This section is empty.
Types ¶
type CPUCollector ¶
type CPUCollector struct {
LastStates *CPUStates
}
CPUCollector is the collector type for cpu metric.
func (*CPUCollector) Collect ¶
func (c *CPUCollector) Collect(collectTime int64) *model.InputMetric
Collect implement the cpu Collector.
type CPUStates ¶
type CPUStates struct {
// contains filtered or unexported fields
}
CPUStates is the type for store cpu state
type CollectorInterface ¶
type CollectorInterface interface {
Collect(collectTime int64) *model.InputMetric
}
CollectorInterface for raw(no aggregator) metric collect.
type DiskCollector ¶
DiskCollector is the collector type for disk metric.
func (*DiskCollector) Collect ¶
func (d *DiskCollector) Collect(collectTime int64) *model.InputMetric
Collect implement the disk Collector we just collect the partition eg:sda, and it's partition is sda1,we just show the sda1.
type DiskIOCountersStat ¶
type DiskIOCountersStat struct {
// contains filtered or unexported fields
}
DiskIOCountersStat is the type for store disk IO data.
type GPUCollector ¶
type GPUCollector struct { }
GPUCollector is the collector type for gpu metric.
func (GPUCollector) AcquireResource ¶
func (GPUCollector) AcquireResource() bool
func (*GPUCollector) Collect ¶
func (c *GPUCollector) Collect(collectTime int64) *model.InputMetric
Collect implement the GPU Collector.
func (GPUCollector) ReleaseResource ¶
func (GPUCollector) ReleaseResource()
type LoadCollector ¶
type LoadCollector struct { }
LoadCollector is the collector type for cpu load metric.
func (*LoadCollector) Collect ¶
func (l *LoadCollector) Collect(collectTime int64) *model.InputMetric
Collect implement the load Collector.
type MemCollector ¶
type MemCollector struct { }
MemCollector is the collector type for memory metric.
func (*MemCollector) Collect ¶
func (m *MemCollector) Collect(collectTime int64) *model.InputMetric
Collect implement the memory Collector.
type NetCollector ¶
type NetCollector struct {
LastStates *NetStates
}
NetCollector is the collector type for net metric.
func (*NetCollector) Collect ¶
func (n *NetCollector) Collect(collectTime int64) *model.InputMetric
Collect implement the net Collector.