processor

package
v0.0.0-...-71bb944 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor extracts metrics from envelopes

func NewProcessor

func NewProcessor(
	pm chan<- []metric.MetricPackage,
	customTags []string,
	environment string,
	parseAppMetricsEnable bool,
	cfClient *cloudfoundry.CFClient,
	numCacheWorkers int,
	grabInterval int,
	log *gosteno.Logger,
) (*Processor, bool)

NewProcessor creates a new processor

func (*Processor) ProcessMetric

func (p *Processor) ProcessMetric(envelope *loggregator_v2.Envelope)

ProcessMetric takes an envelope, parses it and sends the processed metrics to the nozzle

func (*Processor) StopAppMetrics

func (p *Processor) StopAppMetrics()

StopAppMetrics stops the goroutine refreshing the apps cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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