metrics

package
v0.0.0-...-0888c38 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder interface {
	Start(ctx context.Context) error
	Close()
}

Recorder is an interface for all metric recorders.

func NewMetricsRecorder

func NewMetricsRecorder(pxCtx *pixie.Context, clusterCtx *cluster.Context, spec *experimentpb.MetricSpec, eg *errgroup.Group, resultCh chan<- *ResultRow) Recorder

NewMetricsRecorder creates a new Recorder for the given MetricSpec.

type ResultRow

type ResultRow struct {
	Timestamp time.Time
	Name      string
	Value     float64
	Tags      map[string]string
}

ResultRow stores a single recorded metric.

Jump to

Keyboard shortcuts

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