kubernetes_events

package
v0.35.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package kubernetes_events implements the loki.source.kubernetes_events component.

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	JobName: "loki.source.kubernetes_events",

	Client: kubernetes.ClientArguments{
		HTTPClientConfig: config.DefaultHTTPClientConfig,
	},
}

DefaultArguments holds default settings for loki.source.kubernetes_events.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ForwardTo []loki.LogsReceiver `river:"forward_to,attr"`

	JobName    string   `river:"job_name,attr,optional"`
	Namespaces []string `river:"namespaces,attr,optional"`

	// Client settings to connect to Kubernetes.
	Client kubernetes.ClientArguments `river:"client,block,optional"`
}

Arguments holds values which are used to configure the loki.source.kubernetes_events component.

func (*Arguments) SetToDefault added in v0.35.0

func (args *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate added in v0.35.0

func (args *Arguments) Validate() error

Validate implements river.Validator.

type Component

type Component struct {
	// contains filtered or unexported fields
}

Component implements the loki.source.kubernetes_events component, which watches events from Kubernetes and forwards received events to other Loki components.

func New

func New(o component.Options, args Arguments) (*Component, error)

New creates a new loki.source.kubernetes_events component.

func (*Component) DebugInfo

func (c *Component) DebugInfo() interface{}

DebugInfo implements component.DebugComponent.

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

Run implements component.Component.

func (*Component) Update

func (c *Component) Update(args component.Arguments) error

Update implements component.Component.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL