metricsstore

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsReader

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

MetricsReader is a Prometheus metrics reader.

func NewMetricsReader

func NewMetricsReader(logger *zap.Logger, hostPort string, connectTimeout time.Duration) (*MetricsReader, error)

NewMetricsReader returns a new 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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