logtoslsmetric

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "processor_log_to_sls_metric"
)

Variables

This section is empty.

Functions

func GetLogTimeNano

func GetLogTimeNano(log *protocol.Log) string

Types

type ProcessorLogToSlsMetric

type ProcessorLogToSlsMetric struct {
	MetricTimeKey      string
	MetricLabelKeys    []string
	MetricValues       map[string]string
	CustomMetricLabels map[string]string
	IgnoreError        bool
	// contains filtered or unexported fields
}

func (*ProcessorLogToSlsMetric) Description

func (p *ProcessorLogToSlsMetric) Description() string

func (*ProcessorLogToSlsMetric) Init

func (p *ProcessorLogToSlsMetric) Init(context pipeline.Context) (err error)

func (*ProcessorLogToSlsMetric) ProcessLogs

func (p *ProcessorLogToSlsMetric) ProcessLogs(logArray []*protocol.Log) []*protocol.Log

Jump to

Keyboard shortcuts

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