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 Clustering `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.
type Clustering ¶ added in v0.35.0
type Clustering struct { // TODO(@tpaschalis) Move this block to a shared place for all components using clustering. Enabled bool `river:"enabled,attr"` }
Clustering holds values that configure clustering-specific behavior.
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.
Click to show internal directories.
Click to hide internal directories.