Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ Client: kubernetes.ClientArguments{ HTTPClientConfig: config.DefaultHTTPClientConfig, }, KubernetesRole: string(promk8s.RoleEndpoint), InformerSyncTimeout: time.Minute, }
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
// Client settings to connect to Kubernetes.
Client kubernetes.ClientArguments `alloy:"client,block,optional"`
ForwardTo []storage.Appendable `alloy:"forward_to,attr"`
// Namespaces to search for monitor resources. Empty implies All namespaces
Namespaces []string `alloy:"namespaces,attr,optional"`
KubernetesRole string `alloy:"kubernetes_role,attr,optional"`
// LabelSelector allows filtering discovered monitor resources by labels
LabelSelector *config.LabelSelector `alloy:"selector,block,optional"`
Clustering cluster.ComponentBlock `alloy:"clustering,block,optional"`
RelabelConfigs []*alloy_relabel.Config `alloy:"rule,block,optional"`
Scrape ScrapeOptions `alloy:"scrape,block,optional"`
InformerSyncTimeout time.Duration `alloy:"informer_sync_timeout,attr,optional"`
}
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type DebugInfo ¶
type DebugInfo struct {
DiscoveredCRDs []*DiscoveredResource `alloy:"crds,block"`
Targets []scrape.TargetStatus `alloy:"targets,block,optional"`
}
type DiscoveredResource ¶
type DiscoveredResource struct {
Namespace string `alloy:"namespace,attr"`
Name string `alloy:"name,attr"`
LastReconcile time.Time `alloy:"last_reconcile,attr,optional"`
ReconcileError string `alloy:"reconcile_error,attr,optional"`
ScrapeConfigsURL string `alloy:"scrape_configs_url,attr,optional"`
}
type ScrapeOptions ¶
type ScrapeOptions struct {
// DefaultScrapeInterval is the default interval to scrape targets.
DefaultScrapeInterval time.Duration `alloy:"default_scrape_interval,attr,optional"`
// DefaultScrapeTimeout is the default timeout to scrape targets.
DefaultScrapeTimeout time.Duration `alloy:"default_scrape_timeout,attr,optional"`
}
ScrapeOptions holds values that configure scraping behavior.
func (*ScrapeOptions) GlobalConfig ¶
func (s *ScrapeOptions) GlobalConfig() promconfig.GlobalConfig
Click to show internal directories.
Click to hide internal directories.