Documentation ¶
Index ¶
Constants ¶
View Source
const ( // spaces can't individually demarcate individual lexical units // in promql. PromQLTokenSeparators = " []{}()=!~," )
Variables ¶
This section is empty.
Functions ¶
func PromResultToPromSeriesSet ¶
PromResultToPromSeriesSet copies res and converts it to a format suitable for use with the terminal plotting library. It copies since query results are generally not usable beyond the lifetime of the query.
Types ¶
type Completer ¶
type Completer struct {
// contains filtered or unexported fields
}
func NewCompleter ¶
func NewCompleter(completor autocomplete.PromQLCompleter) *Completer
type DataSources ¶
type DataSources struct {
// contains filtered or unexported fields
}
func (DataSources) ScrapePrometheusEndpoint ¶
func (d DataSources) ScrapePrometheusEndpoint(ctx context.Context, ts time.Time) ([]prom.ParsedSeries, error)
type MetricsCommand ¶
type MetricsCommand struct { cli.PromQCommand Period time.Duration Window time.Duration // contains filtered or unexported fields }
func (*MetricsCommand) Run ¶
func (c *MetricsCommand) Run(flags cli.PromQFlags) error
type PromSeries ¶
type PromSeries struct {
// contains filtered or unexported fields
}
func (*PromSeries) Id ¶
func (s *PromSeries) Id() plot.SeriesId
func (*PromSeries) Points ¶
func (s *PromSeries) Points() []plot.Point
func (*PromSeries) Title ¶
func (s *PromSeries) Title() string
type PromSeriesSet ¶
TODO(sollyross): can we make this more efficient with prometheus return data? do we need to?
Click to show internal directories.
Click to hide internal directories.