Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultArguments = Arguments{ Client: kubernetes.ClientArguments{ HTTPClientConfig: config.DefaultHTTPClientConfig, }, }
DefaultArguments holds default settings for loki.source.kubernetes.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { ForwardTo []loki.LogsReceiver `river:"forward_to,attr"` // Client settings to connect to Kubernetes. Client kubernetes.ClientArguments `river:"client,block,optional"` Selector LabelSelector `river:"selector,block,optional"` NamespaceSelector LabelSelector `river:"namespace_selector,block,optional"` }
Arguments holds values which are used to configure the loki.source.podlogs component.
func (*Arguments) UnmarshalRiver ¶
UnmarshalRiver implements river.Unmarshaler and applies defaults.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements the loki.source.podlogs component.
func (*Component) DebugInfo ¶
func (c *Component) DebugInfo() interface{}
DebugInfo returns debug information for loki.source.podlogs.
type DebugInfo ¶
type DebugInfo struct { DiscoveredPodLogs []DiscoveredPodLogs `river:"pod_logs,block"` Targets []kubernetes.DebugInfoTarget `river:"target,block,optional"` }
DebugInfo stores debug information for loki.source.podlogs.
type DiscoveredContainer ¶
type DiscoveredPod ¶
type DiscoveredPod struct { Namespace string `river:"namespace,attr"` Name string `river:"name,attr"` ReconcileError string `river:"reconcile_error,attr,optional"` Containers []DiscoveredContainer `river:"container,block"` }
type DiscoveredPodLogs ¶
type LabelSelector ¶
type LabelSelector struct { MatchLabels map[string]string `river:"match_labels,attr,optional"` MatchExpressions []MatchExpression `river:"match_expression,block,optional"` }
LabelSelector defines a selector to check to see if a set of Kubernetes labels matches a selector.
func (*LabelSelector) BuildSelector ¶
func (ls *LabelSelector) BuildSelector() (labels.Selector, error)
BuildSelector builds a labels.Selector from a Flow LabelSelector.
type MatchExpression ¶
type MatchExpression struct { Key string `river:"key,attr"` Operator string `river:"operator,attr"` Values []string `river:"values,attr,optional"` }
MatchExpression defines an expression matcher to check to see if some key from a Kubernetes resource matches a selector.