loki

package
v1.8.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlusherLoki

type FlusherLoki struct {
	// Convert ilogtail data convert config
	Convert convertConfig
	// URL url of loki server
	URL string
	// TenantID empty string means single tenant mode
	TenantID string
	// MaxMessageWait maximum wait period before sending batch of message
	MaxMessageWait time.Duration
	// MaxMessageBytes maximum batch size of message to accrue before sending
	MaxMessageBytes int
	// Timeout maximum time to wait for server to respond
	Timeout time.Duration
	// MinBackoff minimum backoff time between retries
	MinBackoff time.Duration
	// MaxBackoff maximum backoff time between retries
	MaxBackoff time.Duration
	// MaxRetries maximum number of retries when sending batches
	MaxRetries int
	// DynamicLabels labels to be parsed from logs
	DynamicLabels []string
	// StaticLabels labels to add to each log
	StaticLabels model.LabelSet
	// ClientConfig http client config
	ClientConfig promconf.HTTPClientConfig
	// contains filtered or unexported fields
}

func NewFlusherLoki

func NewFlusherLoki() *FlusherLoki

func (*FlusherLoki) Description

func (f *FlusherLoki) Description() string

func (*FlusherLoki) Flush

func (f *FlusherLoki) Flush(projectName string, logstoreName string, configName string, logGroupList []*protocol.LogGroup) error

func (*FlusherLoki) Init

func (f *FlusherLoki) Init(context pipeline.Context) error

func (*FlusherLoki) IsReady

func (f *FlusherLoki) IsReady(projectName string, logstoreName string, logstoreKey int64) bool

func (*FlusherLoki) SetUrgent

func (f *FlusherLoki) SetUrgent(flag bool)

func (*FlusherLoki) Stop

func (f *FlusherLoki) Stop() error

func (*FlusherLoki) Validate

func (f *FlusherLoki) Validate() error

Jump to

Keyboard shortcuts

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