collectors

package
v0.0.0-...-1b07703 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PREFIX = "gpu_"

Variables

View Source
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

type DiskCollector struct {
	DiskMap sync.Map
}

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.

type NetStates

type NetStates struct {
	// contains filtered or unexported fields
}

NetStates is the type for store net state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL