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 ¶ added in v0.30.0
type Arguments struct {
APIServer config.URL `river:"api_server,attr,optional"`
Role string `river:"role,attr"`
KubeConfig string `river:"kubeconfig_file,attr,optional"`
HTTPClientConfig config.HTTPClientConfig `river:",squash"`
NamespaceDiscovery NamespaceDiscovery `river:"namespaces,block,optional"`
Selectors []SelectorConfig `river:"selectors,block,optional"`
AttachMetadata AttachMetadataConfig `river:"attach_metadata,block,optional"`
}
Arguments configures the discovery.kubernetes component.
func (*Arguments) Convert ¶ added in v0.30.0
func (args *Arguments) Convert() *promk8s.SDConfig
Convert converts Arguments to the Prometheus SD type.
func (*Arguments) SetToDefault ¶ added in v0.35.0
func (args *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
type AttachMetadataConfig ¶ added in v0.34.0
type AttachMetadataConfig struct {
Node bool `river:"node,attr,optional"`
}
type NamespaceDiscovery ¶
type NamespaceDiscovery struct {
IncludeOwnNamespace bool `river:"own_namespace,attr,optional"`
Names []string `river:"names,attr,optional"`
}
NamespaceDiscovery configures filtering rules for which namespaces to discover.
type SelectorConfig ¶
type SelectorConfig struct {
Role string `river:"role,attr"`
Label string `river:"label,attr,optional"`
Field string `river:"field,attr,optional"`
}
SelectorConfig configures selectors to filter resources to discover.
Click to show internal directories.
Click to hide internal directories.