Documentation ¶
Index ¶
- Variables
- func New(dir string) (map[string]Client, error)
- func QueryInterpolation(query string, variables map[string]string) (string, error)
- type Auth
- type Client
- type Data
- type Datasource
- type Options
- type Prometheus
- func (p *Prometheus) GetData(queries, labels []string, start, end time.Time) (*Data, error)
- func (p *Prometheus) GetSuggestions() ([]string, error)
- func (p *Prometheus) GetTableData(queries, labels []string) (*TableData, error)
- func (p *Prometheus) GetVariableValues(query, label string, start, end time.Time) ([]string, error)
- type Series
- type TableData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidType is thrown when the provided datasource in a datasource file is invalid. ErrInvalidType = errors.New("invalid datasource type") )
Functions ¶
Types ¶
type Datasource ¶
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheusClient ¶
func NewPrometheusClient(datasource Datasource) (*Prometheus, error)
func (*Prometheus) GetSuggestions ¶
func (p *Prometheus) GetSuggestions() ([]string, error)
func (*Prometheus) GetTableData ¶
func (p *Prometheus) GetTableData(queries, labels []string) (*TableData, error)
func (*Prometheus) GetVariableValues ¶
Click to show internal directories.
Click to hide internal directories.