kubernetes_events

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 28 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) UnmarshalRiver

func (args *Arguments) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements river.Unmarshaler and applies defaults.

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