scrape

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package scrape implements the functions to read (=> scrape) the apiserver for node/pod capacity and resource metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scraper

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

Scraper is ...

func New

func New(l *zap.SugaredLogger, cfg *rest.Config) (*Scraper, error)

New returns a new instance of Scraper, ready to use.

func (*Scraper) MetricsServer

func (s *Scraper) MetricsServer(ctx context.Context) error

MetricsServer scrapes the metrics-server for node and pod usage information and updates the metrics.

func (*Scraper) Nodes

func (s *Scraper) Nodes(ctx context.Context) error

Nodes scrapes all k8s nodes and updates the node resource capacity/allocatable metrics.

Jump to

Keyboard shortcuts

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