collector

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package collector collects metrics from nodes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetNodeStat added in v0.9.0

func SetNodeStat(nodeName string, stat NodeStat)

Types

type Collector

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

func New

func New(cfg *config.Cluster, node *v1.Node, logger zerolog.Logger, check *circonus.Check, apiTimeout time.Duration) (*Collector, error)

func (*Collector) Collect

func (nc *Collector) Collect(ctx context.Context, workerID int, tlsConfig *tls.Config, ts *time.Time, concurrent bool)

type NodeStat added in v0.9.0

type NodeStat struct {
	CPUCapacity        uint64
	LastCPUNanoSeconds uint64
	Conditions         map[v1.NodeConditionType]v1.ConditionStatus
}

func GetNodeStat added in v0.9.0

func GetNodeStat(nodeName string) (NodeStat, bool)

func NewNodeStat added in v0.10.1

func NewNodeStat() NodeStat

Jump to

Keyboard shortcuts

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