prometheus

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryVectorResponseMock

func NewQueryVectorResponseMock(seriesCount int) interface{}

func NewSeriesResponseMock

func NewSeriesResponseMock(seriesCount int) interface{}

Types

type Client

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

func NewClient

func NewClient(promConfig config.PrometheusConfig) (*Client, error)

func NewClientMock

func NewClientMock(data interface{}, duration time.Duration, warning, returnError bool) *Client

func NewClientWithRoundTripper

func NewClientWithRoundTripper(promConfig config.PrometheusConfig, tripper http.RoundTripper) (*Client, error)

func (*Client) DumpCache

func (s *Client) DumpCache()

func (*Client) Labels

func (s *Client) Labels() ([]string, error)

func (*Client) Query

func (s *Client) Query(query string) ([]*model.Sample, int, time.Duration, error)

func (*Client) SelectorMatch

func (s *Client) SelectorMatch(selector string) ([]model.LabelSet, error)

Jump to

Keyboard shortcuts

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