query

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(param string) (time.Duration, error)

func ParseStep

func ParseStep(param string) (time.Duration, error)

func ParseTime

func ParseTime(param string) (time.Time, error)

Types

type Engine

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

func NewEngine

func NewEngine(m Metrics, opts ...EngineOption) *Engine

func (*Engine) InstantQuery

func (*Engine) RangeQuery

func (*Engine) SeriesQuery

type EngineOption

type EngineOption func(*Engine)

func WithLogger

func WithLogger(l *log.Logger) EngineOption

func WithQueryTimeout

func WithQueryTimeout(queryTimeout time.Duration) EngineOption

type MetricStoreQuerier

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

func (*MetricStoreQuerier) Close

func (querier *MetricStoreQuerier) Close() error

func (*MetricStoreQuerier) LabelValues

func (querier *MetricStoreQuerier) LabelValues(name string) ([]string, error)

func (*MetricStoreQuerier) Select

func (querier *MetricStoreQuerier) Select(params *storage.SelectParams, labelMatchers ...*labels.Matcher) (storage.SeriesSet, error)

type Metrics

type Metrics interface {
	NewCounter(name string) func(delta uint64)
	NewGauge(name, unit string) func(value float64)
}

Jump to

Keyboard shortcuts

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