prometheus_client

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusClient

type PrometheusClient struct {
	Api PrometheusQueryAPI
}

func (*PrometheusClient) Query

func (p *PrometheusClient) Query(ctx context.Context, query string, ts time.Time) (model.Value, error)

func (*PrometheusClient) QueryVectorValues

func (p *PrometheusClient) QueryVectorValues(promql string) ([]float64, error)

type PrometheusQueryAPI

type PrometheusQueryAPI interface {
	Query(ctx context.Context, query string, ts time.Time) (model.Value, error)
}

Jump to

Keyboard shortcuts

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