journal

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	FormatAsJson bool                `alloy:"format_as_json,attr,optional"`
	MaxAge       time.Duration       `alloy:"max_age,attr,optional"`
	Path         string              `alloy:"path,attr,optional"`
	RelabelRules alloy_relabel.Rules `alloy:"relabel_rules,attr,optional"`
	Matches      string              `alloy:"matches,attr,optional"`
	Receivers    []loki.LogsReceiver `alloy:"forward_to,attr"`
	Labels       map[string]string   `alloy:"labels,attr,optional"`
}

Arguments are the arguments for the component.

func (*Arguments) SetToDefault

func (r *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

type Component

type Component struct {
}

Component represents reading from a journal

func New

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

New creates a new component.

func (*Component) Run

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

Run starts the component.

func (*Component) Update

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

Update updates the fields of the component.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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