ssfmetrics

package
v13.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 8 Imported by: 0

README

SSFMetrics Sink

This sink extracts metrics from SSF spans and creates SLI metrics from indicator spans.

Configuration

The indicator_span_timer_name controls the generated metric name.

Status

This sink is stable. Some some encoding or options may change, as it is in active development.

Capabilities

SSF spans contain a Metric field which can contain many SSF metrics. This sink adds those metrics to Veneur's aggregators.

Indicators

Additionally, if a SSF span's indicator flag is true, then a timer will be added for Veneur's next flush. The indicator_span_timer_name controls the name used. The following tags are also set:

  • SSF field name is mapped to the tag span_name
  • SSF field service is mapped to the tag service
  • SSF field error is mapped to the tag error with a value of true or false
  • The unit of the metric is nanoseconds

Documentation

Overview

Package ssfmetrics provides sinks that are used by veneur internally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DerivedMetricsSink

type DerivedMetricsSink interface {
	sinks.SpanSink
	samplers.DerivedMetricsProcessor
}

DerivedMetricsSink composes the functionality of a SpanSink and DerivedMetricsProcessor

func NewMetricExtractionSink

func NewMetricExtractionSink(mw []Processor, indicatorTimerName, objectiveTimerName string, cl *trace.Client, log *logrus.Logger) (DerivedMetricsSink, error)

NewMetricExtractionSink sets up and creates a span sink that extracts metrics ("samples") from SSF spans and reports them to a veneur's metrics workers.

type Processor

type Processor interface {
	// IngestUDP takes a single UDPMetric and processes it in the worker.
	IngestUDP(samplers.UDPMetric)
}

Processor represents a thing that can process UDPMetrics.

Jump to

Keyboard shortcuts

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