query

package
v0.0.0-...-998a55d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteQuery

func ExecuteQuery(args []string, flags *pflag.FlagSet) error

ExecuteQuery initializes a prometheus client and sends all queries to Prometheus

Types

type Querier

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

Querier can use prometheus API to send queries directly to Prometheus

func InitClient

func InitClient(address string) (*Querier, error)

InitClient creates a new client for the querier

func (*Querier) Query

func (q *Querier) Query(ctx context.Context, query string) error

Query sends a string query to Prometheus

Jump to

Keyboard shortcuts

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