scrape

package
v3.28.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name     string
	Grouper  data.Grouper
	Specs    definition.SpecGroups
	Filterer discovery.NamespaceFilterer
}

Job hold all information specific to a certain Scrape Job, e.g.: where do I get the data from, and what data

func NewScrapeJob

func NewScrapeJob(name string, grouper data.Grouper, specs definition.SpecGroups, options ...JobOpt) *Job

NewScrapeJob creates a new Scrape Job with the given attributes

func (*Job) Populate

func (s *Job) Populate(
	i *integration.Integration,
	clusterName string,
	logger *log.Logger,
	k8sVersion *version.Info,
) data.PopulateResult

Populate will get the data using the given Group, transform it, and push it to the given Integration

type JobOpt added in v3.3.0

type JobOpt func(s *Job)

JobOpt are options that can be used to configure the ScrapeJob

func JobWithFilterer added in v3.3.0

func JobWithFilterer(filterer discovery.NamespaceFilterer) JobOpt

JobWithFilterer returns an OptionFunc to add a Filterer.

Jump to

Keyboard shortcuts

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