prometheus

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 19 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) ClearSourceTenants

func (s *Client) ClearSourceTenants()

func (*Client) DumpCache

func (s *Client) DumpCache()

func (*Client) Labels

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

func (*Client) Query

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

func (*Client) QueryStats

func (s *Client) QueryStats(query string, sourceTenants []string) (int, time.Duration, error)

func (*Client) SelectorMatch

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

func (*Client) SelectorMatchingSeries

func (s *Client) SelectorMatchingSeries(selector string, sourceTenants []string) (int, error)

func (*Client) SetSourceTenants

func (s *Client) SetSourceTenants(sourceTenants []string)

Jump to

Keyboard shortcuts

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