Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QueryTime *prometheus.HistogramVec = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "prombench", Subsystem: "query", Name: "latency_seconds", Help: "time to execute query", ConstLabels: prometheus.Labels{ "benchmark": "insert-then-sum", }, }, []string{"run_name", "query"}, ) )
Functions ¶
Types ¶
type Config ¶
type Config struct {
TestDirectory string
RmTestDirectory bool
FirstPort int
PrometheusPath string
ScrapeInterval time.Duration
TestDuration time.Duration
TestRetention time.Duration
ExtraArgs []string
Exporters ExporterSpecList
RunIntervals RunIntervalSpecList
MaxDeltaRatio float64
MaxQueryRetries int
AdaptiveInterval time.Duration
PrombenchListenAddress string
PrometheusListenAddress string
}
func (Config) PrometheusInstance ¶
TODO check for errors when the Config is created
type ExporterSpec ¶
type ExporterSpec struct {
Exporter LoadExporterKind
Count int
}
func (*ExporterSpec) Get ¶
func (e *ExporterSpec) Get() interface{}
func (*ExporterSpec) Set ¶
func (e *ExporterSpec) Set(v string) error
func (*ExporterSpec) String ¶
func (e *ExporterSpec) String() string
type ExporterSpecList ¶
type ExporterSpecList []ExporterSpec
func (*ExporterSpecList) Get ¶
func (esl *ExporterSpecList) Get() interface{}
func (*ExporterSpecList) Set ¶
func (esl *ExporterSpecList) Set(v string) error
func (*ExporterSpecList) String ¶
func (esl *ExporterSpecList) String() string
type LoadExporterKind ¶
type LoadExporterKind int
const ( ExporterInc LoadExporterKind = iota ExporterStatic ExporterRandCyclic ExporterOscillate )
func (LoadExporterKind) String ¶
func (i LoadExporterKind) String() string
type RunIntervalSpec ¶
func (*RunIntervalSpec) Get ¶
func (r *RunIntervalSpec) Get() interface{}
func (*RunIntervalSpec) Set ¶
func (r *RunIntervalSpec) Set(v string) error
func (*RunIntervalSpec) String ¶
func (r *RunIntervalSpec) String() string
type RunIntervalSpecList ¶
type RunIntervalSpecList []RunIntervalSpec
func (*RunIntervalSpecList) Get ¶
func (rsl *RunIntervalSpecList) Get() interface{}
func (*RunIntervalSpecList) Set ¶
func (rsl *RunIntervalSpecList) Set(v string) error
func (*RunIntervalSpecList) String ¶
func (rsl *RunIntervalSpecList) String() string
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
load_exporter
command
|
|
|
load_exporter_static
command
|
|
|
prombench
command
|
|
Click to show internal directories.
Click to hide internal directories.