line

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser added in v0.18.0

type Parser struct {
	DogstatsdTagsEnabled bool
	InfluxdbTagsEnabled  bool
	LibratoTagsEnabled   bool
	SignalFXTagsEnabled  bool
}

Parser is a struct to hold configuration for parsing behavior

func NewParser added in v0.18.0

func NewParser() *Parser

NewParser returns a new line parser

func (*Parser) EnableDogstatsdParsing added in v0.18.0

func (p *Parser) EnableDogstatsdParsing()

EnableDogstatsdParsing option to enable dogstatsd tag parsing

func (*Parser) EnableInfluxdbParsing added in v0.18.0

func (p *Parser) EnableInfluxdbParsing()

EnableInfluxdbParsing option to enable influxdb tag parsing

func (*Parser) EnableLibratoParsing added in v0.18.0

func (p *Parser) EnableLibratoParsing()

EnableLibratoParsing option to enable librato tag parsing

func (*Parser) EnableSignalFXParsing added in v0.18.0

func (p *Parser) EnableSignalFXParsing()

EnableSignalFXParsing option to enable signalfx tag parsing

func (*Parser) LineToEvents added in v0.18.0

func (p *Parser) LineToEvents(line string, sampleErrors prometheus.CounterVec, samplesReceived prometheus.Counter, tagErrors prometheus.Counter, tagsReceived prometheus.Counter, logger log.Logger) event.Events

func (*Parser) ParseDogStatsDTags added in v0.18.0

func (p *Parser) ParseDogStatsDTags(component string, labels map[string]string, tagErrors prometheus.Counter, logger log.Logger)

Jump to

Keyboard shortcuts

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