mysql

package
v1.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	CollectInterval:     10 * time.Second,
	QuerySamplesEnabled: true,
}

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	DataSourceName      alloytypes.Secret   `alloy:"data_source_name,attr"`
	CollectInterval     time.Duration       `alloy:"collect_interval,attr,optional"`
	QuerySamplesEnabled bool                `alloy:"query_samples_enabled,attr,optional"`
	ForwardTo           []loki.LogsReceiver `alloy:"forward_to,attr"`
}

TODO(cristian) consider using something like "enabled_collectors" to allow users to enable/disable collectors.

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

func (*Arguments) Validate

func (a *Arguments) Validate() error

type Collector

type Collector interface {
	Name() string
	Start(context.Context) error
	Stopped() bool
	Stop()
}

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

func (*Component) Update

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

type Exports

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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