Documentation ¶
Index ¶
- type Client
- func (c *Client) LabelValues(ctx context.Context, matcher string, label string, startTime time.Time, ...) (model.LabelValues, error)
- func (c *Client) Query(ctx context.Context, query string, startTime time.Time, endTime time.Time, ...) (model.Value, v1.Warnings, error)
- func (c *Client) Series(ctx context.Context, matches []string, startTime time.Time, endTime time.Time) ([]model.LabelSet, v1.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client queries the prometheus metrics
func (*Client) LabelValues ¶
func (c *Client) LabelValues(ctx context.Context, matcher string, label string, startTime time.Time, endTime time.Time) (model.LabelValues, error)
LabelValues returns all the values for the label by the matchers
Click to show internal directories.
Click to hide internal directories.