Documentation
¶
Overview ¶
Package kubernetes implements a discovery.kubernetes component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Arguments{ HTTPClientConfig: config.DefaultHTTPClientConfig, }
DefaultConfig holds defaults for SDConfig.
Functions ¶
Types ¶
type Arguments ¶
type Arguments struct {
APIServer config.URL `alloy:"api_server,attr,optional"`
Role string `alloy:"role,attr"`
KubeConfig string `alloy:"kubeconfig_file,attr,optional"`
HTTPClientConfig config.HTTPClientConfig `alloy:",squash"`
NamespaceDiscovery NamespaceDiscovery `alloy:"namespaces,block,optional"`
Selectors []SelectorConfig `alloy:"selectors,block,optional"`
AttachMetadata AttachMetadataConfig `alloy:"attach_metadata,block,optional"`
}
Arguments configures the discovery.kubernetes component.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type AttachMetadataConfig ¶
type AttachMetadataConfig struct {
Node bool `alloy:"node,attr,optional"`
}
type NamespaceDiscovery ¶
type NamespaceDiscovery struct {
IncludeOwnNamespace bool `alloy:"own_namespace,attr,optional"`
Names []string `alloy:"names,attr,optional"`
}
NamespaceDiscovery configures filtering rules for which namespaces to discover.
type SelectorConfig ¶
type SelectorConfig struct {
Role string `alloy:"role,attr"`
Label string `alloy:"label,attr,optional"`
Field string `alloy:"field,attr,optional"`
}
SelectorConfig configures selectors to filter resources to discover.
Click to show internal directories.
Click to hide internal directories.