Documentation ¶
Overview ¶
Package kubernetes implements the loki.source.kubernetes component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ Client: commonk8s.DefaultClientArguments, }
DefaultArguments holds default settings for loki.source.kubernetes.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { Targets []discovery.Target `alloy:"targets,attr"` ForwardTo []loki.LogsReceiver `alloy:"forward_to,attr"` // Client settings to connect to Kubernetes. Client commonk8s.ClientArguments `alloy:"client,block,optional"` Clustering cluster.ComponentBlock `alloy:"clustering,block,optional"` }
Arguments holds values which are used to configure the loki.source.kubernetes component.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements the loki.source.kubernetes component.
func (*Component) DebugInfo ¶
func (c *Component) DebugInfo() interface{}
DebugInfo returns debug information for loki.source.kubernetes.
func (*Component) NotifyClusterChange ¶
func (c *Component) NotifyClusterChange()
NotifyClusterChange implements cluster.Component.
type DebugInfo ¶
type DebugInfo struct {
Targets []DebugInfoTarget `alloy:"target,block,optional"`
}
DebugInfo represents debug information for loki.source.kubernetes.
type DebugInfoTarget ¶
type DebugInfoTarget struct { Labels map[string]string `alloy:"labels,attr,optional"` DiscoveryLabels map[string]string `alloy:"discovery_labels,attr,optional"` LastError string `alloy:"last_error,attr,optional"` UpdateTime time.Time `alloy:"update_time,attr,optional"` }
DebugInfoTarget is debug information for an individual target being tailed for logs.
Click to show internal directories.
Click to hide internal directories.