Documentation ¶
Overview ¶
Package logqlbench defines utilities to benchmark LogQL queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigQuery ¶
type ConfigQuery struct { Title string `yaml:"title,omitempty"` Description string `yaml:"description,omitempty"` Start string `yaml:"start,omitempty"` End string `yaml:"end,omitempty"` Step time.Duration `yaml:"step,omitempty"` Query string `yaml:"query,omitempty"` Match []string `yaml:"match,omitempty"` }
ConfigQuery defines LogQL query parameters.
type Input ¶
type Input struct { Instant []ConfigQuery `yaml:"instant"` Range []ConfigQuery `yaml:"range"` Series []ConfigQuery `yaml:"series"` }
Input defines queries config.
type LogQLBenchmark ¶
type LogQLBenchmark struct { Addr string Count int Warmup int StartTime string EndTime string AllowEmpty bool TrackerOptions chtracker.SetupOptions Input string Output string RequestTimeout time.Duration // contains filtered or unexported fields }
type LogQLReport ¶
type LogQLReport struct {
Queries []LogQLReportQuery `json:"queries"`
}
type LogQLReportQuery ¶
type LogQLReportQuery struct { ID int `yaml:"id,omitempty"` Query string `yaml:"query,omitempty"` Title string `yaml:"title,omitempty"` Description string `yaml:"description,omitempty"` DurationNanos int64 `yaml:"duration_nanos,omitempty"` Matchers []string `yaml:"matchers,omitempty"` Queries []chtracker.QueryReport `yaml:"queries,omitempty"` Timeout bool `yaml:"timeout,omitempty"` }
Click to show internal directories.
Click to hide internal directories.