disabled

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDisabled = &errMetricsQueryDisabled{}

ErrDisabled is the error returned by a "disabled" MetricsQueryService on all of its endpoints.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

Factory implements storage.Factory that returns a Disabled metrics reader.

func NewFactory

func NewFactory() *Factory

NewFactory creates a new Factory.

func (*Factory) AddFlags

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

AddFlags implements plugin.Configurable.

func (*Factory) CreateMetricsReader

func (f *Factory) CreateMetricsReader() (metricsstore.Reader, error)

CreateMetricsReader implements storage.MetricsFactory.

func (*Factory) InitFromViper

func (f *Factory) InitFromViper(_ *viper.Viper, _ *zap.Logger)

InitFromViper implements plugin.Configurable.

func (*Factory) Initialize

func (f *Factory) Initialize(_ *zap.Logger) error

Initialize implements storage.MetricsFactory.

type MetricsReader

type MetricsReader struct{}

MetricsReader represents a "disabled" metricsstore.Reader implementation where the METRICS_STORAGE_TYPE has not been set.

func NewMetricsReader

func NewMetricsReader() (*MetricsReader, error)

NewMetricsReader returns a new Disabled MetricsReader.

func (*MetricsReader) GetCallRates

GetCallRates gets the call rate metrics for the given set of call rate query parameters.

func (*MetricsReader) GetErrorRates

func (m *MetricsReader) GetErrorRates(ctx context.Context, requestParams *metricsstore.ErrorRateQueryParameters) (*metrics.MetricFamily, error)

GetErrorRates gets the error rate metrics for the given set of error rate query parameters.

func (*MetricsReader) GetLatencies

GetLatencies gets the latency metrics for the given set of latency query parameters.

func (*MetricsReader) GetMinStepDuration

GetMinStepDuration gets the minimum step duration (the smallest possible duration between two data points in a time series) supported.

Jump to

Keyboard shortcuts

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