Documentation ¶
Index ¶
- Variables
- type Factory
- type MetricsReader
- func (*MetricsReader) GetCallRates(context.Context, *metricsstore.CallRateQueryParameters) (*metrics.MetricFamily, error)
- func (*MetricsReader) GetErrorRates(context.Context, *metricsstore.ErrorRateQueryParameters) (*metrics.MetricFamily, error)
- func (*MetricsReader) GetLatencies(context.Context, *metricsstore.LatenciesQueryParameters) (*metrics.MetricFamily, error)
- func (*MetricsReader) GetMinStepDuration(context.Context, *metricsstore.MinStepDurationQueryParameters) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
var ErrDisabled = &errMetricsQueryDisabledError{}
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 (*Factory) CreateMetricsReader ¶
func (*Factory) CreateMetricsReader() (metricsstore.Reader, error)
CreateMetricsReader implements storage.MetricsFactory.
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable.
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 ¶
func (*MetricsReader) GetCallRates(context.Context, *metricsstore.CallRateQueryParameters) (*metrics.MetricFamily, error)
GetCallRates gets the call rate metrics for the given set of call rate query parameters.
func (*MetricsReader) GetErrorRates ¶
func (*MetricsReader) GetErrorRates(context.Context, *metricsstore.ErrorRateQueryParameters) (*metrics.MetricFamily, error)
GetErrorRates gets the error rate metrics for the given set of error rate query parameters.
func (*MetricsReader) GetLatencies ¶
func (*MetricsReader) GetLatencies(context.Context, *metricsstore.LatenciesQueryParameters) (*metrics.MetricFamily, error)
GetLatencies gets the latency metrics for the given set of latency query parameters.
func (*MetricsReader) GetMinStepDuration ¶
func (*MetricsReader) GetMinStepDuration(context.Context, *metricsstore.MinStepDurationQueryParameters) (time.Duration, error)
GetMinStepDuration gets the minimum step duration (the smallest possible duration between two data points in a time series) supported.