Documentation
¶
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 {
ForwardTo []loki.LogsReceiver `river:"forward_to,attr"`
// Client settings to connect to Kubernetes.
Client commonk8s.ClientArguments `river:"client,block,optional"`
Selector config.LabelSelector `river:"selector,block,optional"`
NamespaceSelector config.LabelSelector `river:"namespace_selector,block,optional"`
Clustering cluster.ComponentBlock `river:"clustering,block,optional"`
}
Arguments holds values which are used to configure the loki.source.podlogs component.
func (*Arguments) SetToDefault ¶ added in v0.35.0
func (args *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements the loki.source.podlogs component.
func New ¶
func New(o component.Options, args Arguments) (*Component, error)
New creates a new loki.source.podlogs component.
func (*Component) DebugInfo ¶
func (c *Component) DebugInfo() interface{}
DebugInfo returns debug information for loki.source.podlogs.
func (*Component) NotifyClusterChange ¶ added in v0.38.0
func (c *Component) NotifyClusterChange()
NotifyClusterChange implements cluster.Component.
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 DiscoveredContainer struct {
DiscoveredLabels map[string]string `river:"discovered_labels,attr"`
Labels map[string]string `river:"labels,attr"`
ReconcileError string `river:"reconcile_error,attr,optional"`
}
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 DiscoveredPodLogs struct {
Namespace string `river:"namespace,attr"`
Name string `river:"name,attr"`
LastReconcile time.Time `river:"last_reconcile,attr,optional"`
ReconcileError string `river:"reconcile_error,attr,optional"`
Pods []DiscoveredPod `river:"pod,block"`
}
Click to show internal directories.
Click to hide internal directories.