opentsdb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.2.0

type Client interface {
	SendData(series []prompb.TimeSeries) error
}

type Factory

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

func NewFactory

func NewFactory() *Factory

func (*Factory) AddFlags added in v1.2.0

func (f *Factory) AddFlags(flagSet *flag.FlagSet)

AddFlags implements plugin.Configurable

func (Factory) CreateWriter

func (f Factory) CreateWriter() (metricstore.Writer, error)

func (*Factory) InitFromOptions added in v1.2.0

func (f *Factory) InitFromOptions(o Options)

InitFromOptions initializes factory from options.

func (*Factory) InitFromViper added in v1.2.0

func (f *Factory) InitFromViper(v *viper.Viper)

InitFromViper implements plugin.Configurable

func (*Factory) Initialize

func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error

type Options added in v1.2.0

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

func (*Options) AddFlags added in v1.2.0

func (o *Options) AddFlags(flagSet *flag.FlagSet)

func (*Options) InitFromViper added in v1.2.0

func (o *Options) InitFromViper(v *viper.Viper)

type Writer added in v1.2.0

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

func NewMetricWriter added in v1.2.0

func NewMetricWriter(
	l *zap.Logger,
	c Client,
) *Writer

func (*Writer) WriteMetric added in v1.2.0

func (w *Writer) WriteMetric(metrics []prompb.TimeSeries) error

type WriterMetrics added in v1.2.0

type WriterMetrics struct {
	WrittenSuccess metrics.Counter
	WrittenFailure metrics.Counter
}

Directories

Path Synopsis
metricstore

Jump to

Keyboard shortcuts

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