prometheus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend implements a metric backend for Prometheus.

func New

func New(address string, logger log.Logger) (*Backend, error)

New returns a new client for talking to a Prometheus Backend, or an error

func (*Backend) QueryInstant

func (b *Backend) QueryInstant(ctx context.Context, query string, ts time.Time) (model.Vector, error)

QueryInstant performs instant query and returns results in model.Vector type.

Jump to

Keyboard shortcuts

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