victorialogs

package
v1.7.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VLAuthConfiguration

type VLAuthConfiguration struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type VLConfiguration

type VLConfiguration struct {
	URL                               string              `yaml:"url"`    // VictoriaLogs url
	Prefix                            string              `yaml:"prefix"` // VictoriaLogs prefix
	Query                             string              `yaml:"query"`  // LogsQL query
	Limit                             int                 `yaml:"limit"`  // Limit of logs to read
	Since                             time.Duration       `yaml:"since"`
	Headers                           map[string]string   `yaml:"headers"`        // HTTP headers for talking to VictoriaLogs
	WaitForReady                      time.Duration       `yaml:"wait_for_ready"` // Retry interval, default is 10 seconds
	Auth                              VLAuthConfiguration `yaml:"auth"`
	MaxFailureDuration                time.Duration       `yaml:"max_failure_duration"` // Max duration of failure before stopping the source
	configuration.DataSourceCommonCfg `yaml:",inline"`
}

type VLSource

type VLSource struct {
	Config VLConfiguration

	Client *vlclient.VLClient
	// contains filtered or unexported fields
}

func (*VLSource) CanRun

func (l *VLSource) CanRun() error

func (*VLSource) Configure

func (l *VLSource) Configure(config []byte, logger *log.Entry, metricsLevel metrics.AcquisitionMetricsLevel) error

func (*VLSource) ConfigureByDSN

func (l *VLSource) ConfigureByDSN(dsn string, labels map[string]string, logger *log.Entry, uuid string) error

func (*VLSource) Dump

func (l *VLSource) Dump() interface{}

func (*VLSource) GetAggregMetrics

func (l *VLSource) GetAggregMetrics() []prometheus.Collector

func (*VLSource) GetMetrics

func (l *VLSource) GetMetrics() []prometheus.Collector

func (*VLSource) GetMode

func (l *VLSource) GetMode() string

func (*VLSource) GetName

func (l *VLSource) GetName() string

func (*VLSource) GetUuid

func (l *VLSource) GetUuid() string

func (*VLSource) OneShotAcquisition

func (l *VLSource) OneShotAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error

OneShotAcquisition reads a set of file and returns when done

func (*VLSource) StreamingAcquisition

func (l *VLSource) StreamingAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error

func (*VLSource) SupportedModes

func (l *VLSource) SupportedModes() []string

SupportedModes returns the supported modes by the acquisition module

func (*VLSource) UnmarshalConfig

func (l *VLSource) UnmarshalConfig(yamlConfig []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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