config

package
v0.0.0-...-1a0a9e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	Generator *Generator `yaml:"generator"`
	Querier   *Querier   `yaml:"querier"`
	Metrics   *Metrics   `yaml:"metrics"`
	Scenarios *Scenarios `yaml:"scenarios"`
}

type Generator

type Generator struct {
	Namespace      string `yaml:"namespace"`
	ServiceAccount string `yaml:"serviceAccount,omitempty"`
	Image          string `yaml:"image"`
	Tenant         string `yaml:"tenant"`
	PushURL        string `yaml:"pushURL"`
}

type IngestionPath

type IngestionPath struct {
	Enabled     bool    `yaml:"enabled"`
	Description string  `yaml:"description"`
	Writers     *Writer `yaml:"writers"`
	// contains filtered or unexported fields
}

func (*IngestionPath) SamplingConfiguration

func (w *IngestionPath) SamplingConfiguration() (gmeasure.SamplingConfig, model.Duration)

type Jobs

type Jobs struct {
	Distributor   string `yaml:"distributor"`
	Ingester      string `yaml:"ingester"`
	Querier       string `yaml:"querier"`
	QueryFrontend string `yaml:"queryFrontend"`
	IndexGateway  string `yaml:"indexGateway"`
}

type Metrics

type Metrics struct {
	URL                   string `yaml:"url"`
	Jobs                  *Jobs  `yaml:"jobs"`
	EnableCadvisorMetrics bool   `yaml:"enableCadvisorMetrics"`
}

type Querier

type Querier struct {
	Namespace      string `yaml:"namespace"`
	ServiceAccount string `yaml:"serviceAccount,omitempty"`
	Image          string `yaml:"image"`
	Tenant         string `yaml:"tenant"`
	PullURL        string `yaml:"pullURL"`
}

type QueryPath

type QueryPath struct {
	Enabled     bool    `yaml:"enabled"`
	Description string  `yaml:"description"`
	Readers     *Reader `yaml:"readers"`
	// contains filtered or unexported fields
}

func (*QueryPath) LogGenerator

func (r *QueryPath) LogGenerator() *Writer

func (*QueryPath) SamplingConfiguration

func (r *QueryPath) SamplingConfiguration() (gmeasure.SamplingConfig, model.Duration)

type Reader

type Reader struct {
	Replicas   int32             `yaml:"replicas"`
	Queries    map[string]string `yaml:"queries"`
	QueryRange string            `yaml:"queryRange"`
}

type Sample

type Sample struct {
	Total    int           `yaml:"total"`
	Interval time.Duration `yaml:"interval"`
}

type Scenarios

type Scenarios struct {
	IngestionPath *IngestionPath `yaml:"ingestionPath,omitempty"`
	QueryPath     *QueryPath     `yaml:"queryPath,omitempty"`
}

func (*Scenarios) IsReadTestEnabled

func (s *Scenarios) IsReadTestEnabled() bool

func (*Scenarios) IsWriteTestEnabled

func (s *Scenarios) IsWriteTestEnabled() bool

type Writer

type Writer struct {
	Replicas int32             `yaml:"replicas"`
	Args     map[string]string `yaml:"args"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL