collectors

package
v0.0.0-...-9625d7e Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const NicEthPrefix = "eth"

Variables

This section is empty.

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

type DiskIOCountersStat

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

DiskIOCountersStat is the type for store disk IO data

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

type ProcStatusCollector

type ProcStatusCollector struct {
}

ProcStatusCollector is the collector type for memory metric

func (*ProcStatusCollector) Collect

func (p *ProcStatusCollector) Collect(collectTime int64) *model.InputMetric

Collect implement the process status count Collector

type ProcessCollector

type ProcessCollector struct {
	Process *process.Process
}

ProcessCollector is the collector type for process metric

func (*ProcessCollector) Collect

func (p *ProcessCollector) Collect(collectTime int64) *model.InputMetric

Collect implement the process Collector

type ProcessNum

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

ProcessNum the type for process info

type SpeProcCountCollector

type SpeProcCountCollector struct {
	CmdLines []string
}

SpeProcCountCollector is the collector type for memory metric

func (*SpeProcCountCollector) Collect

func (p *SpeProcCountCollector) Collect(collectTime int64) *model.InputMetric

Collect implement the process status count Collector

Jump to

Keyboard shortcuts

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