collector

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: BSD-3-Clause Imports: 20 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 *k8s.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
}

func GetNodeStat added in v0.9.0

func GetNodeStat(nodeName string) (NodeStat, bool)

Jump to

Keyboard shortcuts

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