collectors

package
v1.0.78 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCollectors = []string{
	"cpu",
	"diskstats",
	"filesystem",
	"gpu",
	"loadavg",
	"meminfo",
	"netdev",
	"netstat",
	"processes",
	"systemd",
}

DefaultCollectors ...

Functions

This section is empty.

Types

type NodeCollector

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

NodeCollector ...

func NewNodeCollector

func NewNodeCollector(collectors []string) (*NodeCollector, error)

NewNodeCollector ...

func (*NodeCollector) Collect

func (n *NodeCollector) Collect(ch chan<- prometheus.Metric)

Collect ...

func (*NodeCollector) Collectors

func (n *NodeCollector) Collectors() map[string]collector.Collector

Collectors ...

func (*NodeCollector) Describe

func (n *NodeCollector) Describe(ch chan<- *prometheus.Desc)

Describe ...

func (*NodeCollector) IsDeviceMetric

func (n *NodeCollector) IsDeviceMetric(desc string) bool

IsDeviceMetric ...

func (*NodeCollector) Name

func (n *NodeCollector) Name() string

Name ...

Jump to

Keyboard shortcuts

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