metric

package
v0.0.88 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyMeterOption

type EmptyMeterOption struct{}

EmptyMeterOption does not alter the configuration. It can be embedded in another structure to build custom options.

This API is EXPERIMENTAL.

type Meter

type Meter struct {
	Controller controller.Controller
	// contains filtered or unexported fields
}

func NewMeter

func NewMeter(opts ...MeterOption) *Meter

func (*Meter) ApplyOptions

func (o *Meter) ApplyOptions(options ...MeterOption) *Meter

type MeterOptinos

type MeterOptinos struct {
	PushExporterBuilder PushExporterBuilder
	PullExporterBuilder PullExporterBuilder
	// contains filtered or unexported fields
}

type MeterOption

type MeterOption interface {
	// contains filtered or unexported methods
}

A MeterOption sets options.

func WithCollectPeriod

func WithCollectPeriod(period time.Duration) MeterOption

func WithPullExporter

func WithPullExporter(pullExporterBuilder PullExporterBuilder) MeterOption

func WithPushExporter

func WithPushExporter(pushExporterBuilder PushExporterBuilder) MeterOption

type MeterOptionFunc

type MeterOptionFunc func(*Meter)

MeterOptionFunc wraps a function that modifies Client into an implementation of the MeterOption interface.

type PullExporterBuilder

type PullExporterBuilder interface {
	Build(ctx context.Context, c *controller.Controller) (aggregation.TemporalitySelector, error)
}

type PushExporterBuilder

type PushExporterBuilder interface {
	Build(ctx context.Context) (export.Exporter, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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