beyla

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 21 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 {
	Port           string                     `alloy:"open_port,attr,optional"`
	ExecutableName string                     `alloy:"executable_name,attr,optional"`
	Routes         Routes                     `alloy:"routes,block,optional"`
	Attributes     Attributes                 `alloy:"attributes,block,optional"`
	Discovery      Discovery                  `alloy:"discovery,block,optional"`
	Output         *otelcol.ConsumerArguments `alloy:"output,block,optional"`
}

Arguments configures the Beyla component.

func (*Arguments) Convert

func (a *Arguments) Convert() (*beyla.Config, error)

func (*Arguments) Validate

func (args *Arguments) Validate() error

type Attributes

type Attributes struct {
	Kubernetes KubernetesDecorator `alloy:"kubernetes,block"`
}

func (Attributes) Convert

func (args Attributes) Convert() beyla.Attributes

type Component

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

func New

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

func (*Component) CurrentHealth

func (c *Component) CurrentHealth() component.Health

func (*Component) Handler

func (c *Component) Handler() http.Handler

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.

type Discovery

type Discovery struct {
	Services Services `alloy:"services,block"`
}

func (Discovery) Convert

func (args Discovery) Convert() (services.DiscoveryConfig, error)

type Exports

type Exports struct {
	Targets []discovery.Target `alloy:"targets,attr"`
}

type KubernetesDecorator

type KubernetesDecorator struct {
	Enable string `alloy:"enable,attr"`
}

type Routes

type Routes struct {
	Unmatch        string   `alloy:"unmatched,attr,optional"`
	Patterns       []string `alloy:"patterns,attr,optional"`
	IgnorePatterns []string `alloy:"ignored_patterns,attr,optional"`
	IgnoredEvents  string   `alloy:"ignore_mode,attr,optional"`
}

func (Routes) Convert

func (args Routes) Convert() *transform.RoutesConfig

type Service

type Service struct {
	Name      string `alloy:"name,attr,optional"`
	Namespace string `alloy:"namespace,attr,optional"`
	OpenPorts string `alloy:"open_ports,attr,optional"`
	Path      string `alloy:"exe_path,attr,optional"`
}

type Services

type Services []Service

func (Services) Convert

func (args Services) Convert() (services.DefinitionCriteria, error)

Jump to

Keyboard shortcuts

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