scraper

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScraper

func NewScraper(nodeLister v1listers.NodeLister, client client.KubeletMetricsGetter, scrapeTimeout time.Duration, labelRequirement []labels.Requirement) *scraper

func RegisterScraperMetrics

func RegisterScraperMetrics(registrationFunc func(metrics.Registerable) error) error

RegisterScraperMetrics registers rate, errors, and duration metrics on Kubelet API scrapes.

Types

type NodeInfo

type NodeInfo struct {
	Name           string
	ConnectAddress string
}

NodeInfo contains the information needed to identify and connect to a particular node (node name and preferred address).

type Scraper

type Scraper interface {
	Scrape(ctx context.Context) *storage.MetricsBatch
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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