operator

package
v0.40.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Client: kubernetes.ClientArguments{
		HTTPClientConfig: config.DefaultHTTPClientConfig,
	},
}

Functions

This section is empty.

Types

type Arguments

type Arguments struct {

	// Client settings to connect to Kubernetes.
	Client kubernetes.ClientArguments `river:"client,block,optional"`

	ForwardTo []storage.Appendable `river:"forward_to,attr"`

	// Namespaces to search for monitor resources. Empty implies All namespaces
	Namespaces []string `river:"namespaces,attr,optional"`

	// LabelSelector allows filtering discovered monitor resources by labels
	LabelSelector *config.LabelSelector `river:"selector,block,optional"`

	Clustering cluster.ComponentBlock `river:"clustering,block,optional"`

	RelabelConfigs []*flow_relabel.Config `river:"rule,block,optional"`

	Scrape ScrapeOptions `river:"scrape,block,optional"`
}

func (*Arguments) SetToDefault added in v0.35.0

func (args *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate added in v0.35.0

func (args *Arguments) Validate() error

Validate implements river.Validator.

type DebugInfo

type DebugInfo struct {
	DiscoveredCRDs []*DiscoveredResource `river:"crds,block"`
	Targets        []scrape.TargetStatus `river:"targets,block,optional"`
}

type DiscoveredResource

type DiscoveredResource struct {
	Namespace        string    `river:"namespace,attr"`
	Name             string    `river:"name,attr"`
	LastReconcile    time.Time `river:"last_reconcile,attr,optional"`
	ReconcileError   string    `river:"reconcile_error,attr,optional"`
	ScrapeConfigsURL string    `river:"scrape_configs_url,attr,optional"`
}

type ScrapeOptions added in v0.37.0

type ScrapeOptions struct {
	// DefaultScrapeInterval is the default interval to scrape targets.
	DefaultScrapeInterval time.Duration `river:"default_scrape_interval,attr,optional"`

	// DefaultScrapeTimeout is the default timeout to scrape targets.
	DefaultScrapeTimeout time.Duration `river:"default_scrape_timeout,attr,optional"`
}

ScrapeOptions holds values that configure scraping behavior.

func (*ScrapeOptions) GlobalConfig added in v0.38.0

func (s *ScrapeOptions) GlobalConfig() promconfig.GlobalConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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